package com.qxueyou.scc.teach.subject.model; import java.io.Serializable; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; //import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; import org.hibernate.annotations.GenericGenerator; //import org.hibernate.annotations.Fetch; //import org.hibernate.annotations.FetchMode; //import org.hibernate.annotations.GenericGenerator; import org.springframework.format.annotation.DateTimeFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.qxueyou.scc.base.model.ITrace; /** * The persistent class for the sch_chapter database table. * */ @Entity @Table(name = "SUBJECT_CHAPTER") public class SubjectChapter implements Serializable, ITrace { private static final long serialVersionUID = 1L; @Id @GeneratedValue(generator = "hibernate-uuid") @GenericGenerator(name = "hibernate-uuid", strategy = "uuid") @Column(name="CHAPTER_ID") private String chapterId; @Column(name = "CODE") private String code; @Column(name = "CREATE_ID") private String createId; @Temporal(TemporalType.TIMESTAMP) @Column(name = "CREATE_TIME") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonIgnore private Date createTime; @Column(name = "CREATOR") private String creator; @Column(name = "DELETE_FLAG") private boolean deleteFlag; @Column(name = "NAME") private String name; @Column(name = "PARENT_CHAPTER_ID") private String parentChapterId; @Column(name = "SUBJECT_ID") private String subjectId; @Column(name = "UPDATE_ID") private String updateId; @Temporal(TemporalType.TIMESTAMP) @Column(name = "UPDATE_TIME") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonIgnore private Date updateTime; @Column(name = "UPDATOR") private String updator; @Column(name = "ORDER_NUM") private int orderNum; public static final String ROOT_CHAPTER_ID = "0"; public int getOrderNum() { return orderNum; } public void setOrderNum(int orderNum) { this.orderNum = orderNum; } public String getChapterId() { return this.chapterId; } public void setChapterId(String chapterId) { this.chapterId = chapterId; } public String getCode() { return this.code; } public void setCode(String code) { this.code = code; } public String getCreateId() { return this.createId; } public void setCreateId(String createId) { this.createId = createId; } public Date getCreateTime() { return this.createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } public String getCreator() { return this.creator; } public void setCreator(String creator) { this.creator = creator; } public boolean getDeleteFlag() { return this.deleteFlag; } public void setDeleteFlag(boolean deleteFlag) { this.deleteFlag = deleteFlag; } public String getName() { return this.name; } public void setName(String name) { this.name = name; } public String getParentChapterId() { return this.parentChapterId; } public void setParentChapterId(String parentChapterId) { this.parentChapterId = parentChapterId; } public String getSubjectId() { return this.subjectId; } public void setSubjectId(String subjectId) { this.subjectId = subjectId; } public String getUpdateId() { return this.updateId; } public void setUpdateId(String updateId) { this.updateId = updateId; } public Date getUpdateTime() { return this.updateTime; } public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; } public String getUpdator() { return this.updator; } public void setUpdator(String updator) { this.updator = updator; } }