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; // } }