package com.qxueyou.scc.portal.information.model; //sa_information import com.fasterxml.jackson.annotation.JsonIgnore; import com.qxueyou.scc.base.model.ITrace; import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.Proxy; import org.springframework.format.annotation.DateTimeFormat; import javax.persistence.*; import java.io.Serializable; import java.util.Date; import java.util.List; import java.util.Map; //@Proxy(lazy = false) @Entity @Table( name = "sa_information") public class Information implements Serializable { private static final long serialVersionUID = 1L; //²Ý¸å draft public static final String DRAFT_STATUS = "draft"; //ÉÏ¼Ü public static final String UP_STATUS = "up"; //ÏÂ¼Ü public static final String DOWN_STATUS = "down"; public Information() { } public Information(String id, String title, String type, String thumbnailUrl, Date createTime, Date updateTime, String status, Integer browseCount, String attachment, String content, Date dateTime, String subColumn, String videoUrl, String numbers, String competition, Integer deleteFlag) { this.id = id; this.title = title; this.type = type; this.thumbnailUrl = thumbnailUrl; this.createTime = createTime; this.updateTime = updateTime; this.status = status; this.browseCount = browseCount; this.attachment = attachment; this.content = content; this.dateTime = dateTime; this.subColumn = subColumn; this.videoUrl = videoUrl; this.numbers = numbers; this.competition = competition; this.deleteFlag = deleteFlag; } private String id; public void setId(String id) { this.id = id; } @Id @GeneratedValue(generator = "hibernate-uuid") @GenericGenerator(name = "hibernate-uuid", strategy = "uuid") @Column(name = "Id", unique = true, nullable = false, length = 32) public String getId() { return id; } //ÎÄÕ±êÌâ private String title; //ÎÄÕÂÀàÐÍ //examBriefing ×ß½ø´óÈü // qualifiedSet ֪ͨ¹«¸æ // policiesRegulations ÐÂÎÅÖÐÐÄ // examinationGuide ×ÊÁÏÏÂÔØ // popularInformation ÁªÏµ·½Ê½ // occupationalStandard private String type; //ËõÂÔͼ private String thumbnailUrl; private Date createTime; private Date updateTime; //״̬ private String status; //ä¯ÀÀÊý //BROWSE_COUNT browseCount private Integer browseCount; //¸½¼þ private String attachment; // //¹¤ÖÖ±àºÅ // private String occupationCode; //ÎÄÕÂÄÚÈÝ private String content; //·¢²¼Ê±¼ä private Date dateTime; //×ÓÀ¸Ä¿ private String subColumn; //ÊÓÆµÂ·¾¶ private String videoUrl; //½ìÊý private String numbers; //¾ºÈüÎļþ·¾¶ private String competition; //ÊÇ·ñɾ³ý£º0δɾ³ý 1ɾ³ý private Integer deleteFlag; // //³õÈü³É¼¨Â·¾¶ // private String preliminaries; //¾öÈü³É¼¨Â·¾¶ // private String finals; public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getType() { return type; } public void setType(String type) { this.type = type; } @Column(name = "THUMBNAIL_URL", nullable = false, length = 100) public String getThumbnailUrl() { return thumbnailUrl; } public void setThumbnailUrl(String thumbnailUrl) { this.thumbnailUrl = thumbnailUrl; } @Column(name = "CREATE_TIME", length = 19) @Temporal(TemporalType.TIMESTAMP) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonIgnore public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } @Column(name = "UPDATE_TIME", length = 19) @Temporal(TemporalType.TIMESTAMP) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonIgnore public Date getUpdateTime() { return updateTime; } public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; } @Column(name = "STATUS", length = 10) public String getStatus() { return status; } public void setStatus(String status) { this.status = status; } @Column(name = "BROWSE_COUNT" ,length = 20) public Integer getBrowseCount() { return browseCount; } public void setBrowseCount(Integer browseCount) { this.browseCount = browseCount; } @Column(name = "ATTACHMENT" ,length = 100) public String getAttachment() { return attachment; } public void setAttachment(String attachment) { this.attachment = attachment; } @Column(name = "CONTENT" ) public String getContent() { return content; } public void setContent(String content) { this.content = content; } @Column(name = "DATE_TIME", length = 19) @Temporal(TemporalType.TIMESTAMP) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") // @JsonIgnore public Date getDateTime() { return dateTime; } public void setDateTime(Date dateTime) { this.dateTime = dateTime; } @Column(name = "SUB_COLUMN" ) public String getSubColumn() { return subColumn; } public void setSubColumn(String subColumn) { this.subColumn = subColumn; } @Column(name = "VIDEO_URL" ) public String getVideoUrl() { return videoUrl; } public void setVideoUrl(String videoUrl) { this.videoUrl = videoUrl; } @Column(name = "NUMBERS" ) public String getNumbers() { return numbers; } public void setNumbers(String numbers) { this.numbers = numbers; } @Column(name = "COMPETITION" ) public String getCompetition() { return competition; } public void setCompetition(String competition) { this.competition = competition; } @Column(name = "DELTE_FLAG" ) public Integer getDeleteFlag() { return deleteFlag; } public void setDeleteFlag(Integer deleteFlag) { this.deleteFlag = deleteFlag; } // public String getPreliminaries() { // return preliminaries; // } // // public void setPreliminaries(String preliminaries) { // this.preliminaries = preliminaries; // } // // public String getFinals() { // return finals; // } // // public void setFinals(String finals) { // this.finals = finals; // } }