Java Gonggao Entity Class: Understanding the ctime Attribute
package com.study.entity; public class Gonggao { private Integer id; public String getTitle() { \u000A\t\treturn title; \u000A\t} \u000A\tpublic void setTitle(String title) { \u000A\t\tthis.title = title; \u000A\t} \u000A\tpublic String getContent() { \u000A\t\treturn content; \u000A\t} \u000A\tpublic void setContent(String content) { \u000A\t\tthis.content = content; \u000A\t} \u000A\tpublic String getCtime() { \u000A\t\treturn ctime; \u000A\t} \u000A\tpublic void setCtime(String ctime) { \u000A\t\tthis.ctime = ctime; \u000A\t} \u000A\tprivate String title; \u000A\tprivate String content; \u000A\tprivate String ctime; \u000A\t \u000A\tpublic Integer getId() { \u000A\t\treturn id; \u000A\t} \u000A\tpublic void setId(Integer id) { \u000A\t\tthis.id = id; \u000A\t} \u000A\t \u000A} \u000AThe ctime attribute in the above code represents the creation time of the announcement.
原文地址: https://www.cveoy.top/t/topic/pQUt 著作权归作者所有。请勿转载和采集!