package com.qxueyou.scc.admin.classes.model; // Generated 2018-3-11 16:20:04 by Hibernate Tools 5.2.8.Final import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Map; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; import javax.persistence.Transient; import org.hibernate.annotations.GenericGenerator; import org.springframework.format.annotation.DateTimeFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.qxueyou.scc.base.model.ITrace; /** * ClsSubjectChapter generated by hbm2java */ @Entity @Table(name = "cls_subject_chapter") public class ClsSubjectChapter implements java.io.Serializable, ITrace { /** * */ private static final long serialVersionUID = -6073387027581019030L; private String chapterId; private Date createTime; private Date updateTime; private String creator; private String createId; private String updator; private String updateId; private String subjectId; private String classId; private String name; private String code; private String parentChapterId; private Integer orderNum; private String tenantId; private boolean deleteFlag; private List> lectures = new ArrayList>(); public static final String ROOT_CHAPTER_ID = "0"; public ClsSubjectChapter() { } public ClsSubjectChapter(String chapterId, Date createTime, Date updateTime, String creator, String createId, boolean deleteFlag) { this.chapterId = chapterId; this.createTime = createTime; this.updateTime = updateTime; this.creator = creator; this.createId = createId; this.deleteFlag = deleteFlag; } public ClsSubjectChapter(String chapterId, Date createTime, Date updateTime, String creator, String createId, String updator, String updateId, boolean deleteFlag, String subjectId, String classId, String name, String code, String parentChapterId, Integer orderNum, String tenantId) { this.chapterId = chapterId; this.createTime = createTime; this.updateTime = updateTime; this.creator = creator; this.createId = createId; this.updator = updator; this.updateId = updateId; this.deleteFlag = deleteFlag; this.subjectId = subjectId; this.classId = classId; this.name = name; this.code = code; this.parentChapterId = parentChapterId; this.orderNum = orderNum; this.tenantId = tenantId; } @Id @GeneratedValue(generator = "hibernate-uuid") @GenericGenerator(name = "hibernate-uuid", strategy = "uuid") @Column(name = "CHAPTER_ID", unique = true, nullable = false, length = 32) public String getChapterId() { return this.chapterId; } public void setChapterId(String chapterId) { this.chapterId = chapterId; } @Column(name = "CREATE_TIME", nullable = false, length = 19) @Temporal(TemporalType.TIMESTAMP) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonIgnore public Date getCreateTime() { return this.createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } @Column(name = "UPDATE_TIME", nullable = false, length = 19) @Temporal(TemporalType.TIMESTAMP) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonIgnore public Date getUpdateTime() { return this.updateTime; } public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; } @Column(name = "CREATOR", nullable = false, length = 100) public String getCreator() { return this.creator; } public void setCreator(String creator) { this.creator = creator; } @Column(name = "CREATE_ID", nullable = false, length = 32) public String getCreateId() { return this.createId; } public void setCreateId(String createId) { this.createId = createId; } @Column(name = "UPDATOR", length = 100) public String getUpdator() { return this.updator; } public void setUpdator(String updator) { this.updator = updator; } @Column(name = "UPDATE_ID", length = 32) public String getUpdateId() { return this.updateId; } public void setUpdateId(String updateId) { this.updateId = updateId; } @Column(name = "SUBJECT_ID", length = 32) public String getSubjectId() { return this.subjectId; } public void setSubjectId(String subjectId) { this.subjectId = subjectId; } @Column(name = "CLASS_ID", length = 32) public String getClassId() { return this.classId; } public void setClassId(String classId) { this.classId = classId; } @Column(name = "NAME", length = 150) public String getName() { return this.name; } public void setName(String name) { this.name = name; } @Column(name = "CODE", length = 64) public String getCode() { return this.code; } public void setCode(String code) { this.code = code; } @Column(name = "PARENT_CHAPTER_ID", length = 32) public String getParentChapterId() { return this.parentChapterId; } public void setParentChapterId(String parentChapterId) { this.parentChapterId = parentChapterId; } @Column(name = "ORDER_NUM") public Integer getOrderNum() { return this.orderNum; } public void setOrderNum(Integer orderNum) { this.orderNum = orderNum; } @Column(name = "TENANT_ID", length = 32) public String getTenantId() { return this.tenantId; } public void setTenantId(String tenantId) { this.tenantId = tenantId; } @Column(name = "DELETE_FLAG", nullable = false) public boolean getDeleteFlag() { return this.deleteFlag; } public void setDeleteFlag(boolean deleteFlag) { this.deleteFlag = deleteFlag; } @Transient public List> getLectures() { return lectures; } public void setLectures(List> lectures) { this.lectures = lectures; } }