package com.qxueyou.scc.teach.subject.model;
|
// Generated 2018-3-11 11:06:50 by Hibernate Tools 5.2.8.Final
|
|
import java.util.Date;
|
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 org.hibernate.annotations.GenericGenerator;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
import com.qxueyou.scc.base.model.ITrace;
|
import com.qxueyou.scc.teach.res.model.Res;
|
|
/**
|
* SubjectLecture generated by hbm2java
|
*/
|
@Entity
|
@Table(name = "subject_lecture")
|
public class SubjectLecture implements java.io.Serializable, ITrace {
|
|
public final static String STATUS_DRAFT = "draft";
|
|
public final static String STATUS_ISSUED = "issued";
|
|
public final static String STATUS_OFFLINE = "offline";
|
|
public final static String STATUS_CONVER = "conver";
|
|
public final static String TYPE_VIDEO = Res.FILE_TYPE_VIDEO;
|
|
public final static String TYPE_AUDIO = Res.FILE_TYPE_AUDIO;
|
|
public final static String TYPE_DOC = Res.FILE_TYPE_DOC;
|
|
public final static String TYPE_EXERCISE = Res.FILE_TYPE_EXERCISE;
|
|
public final static String TYPE_ARTICLE = Res.FILE_TYPE_ARTICLE;
|
|
private static final long serialVersionUID = -522912778293506902L;
|
private String lectureId;
|
private String name;
|
private String resItemId;
|
private String lectureType;
|
private String tenantId;
|
private String status;
|
private String updateId;
|
private String updator;
|
private Date updateTime;
|
private String creator;
|
private String createId;
|
private Date createTime;
|
private boolean deleteFlag;
|
private String remark;
|
private String subjectId;
|
private String chapterId;
|
|
public SubjectLecture() {
|
}
|
|
public SubjectLecture(String lectureId, Date updateTime, Date createTime, boolean deleteFlag) {
|
this.lectureId = lectureId;
|
this.updateTime = updateTime;
|
this.createTime = createTime;
|
this.deleteFlag = deleteFlag;
|
}
|
|
public SubjectLecture(String lectureId, String name, String resItemId, String lectureType, String tenantId,
|
String status, Date updateTime, Date createTime, boolean deleteFlag, String remark) {
|
this.lectureId = lectureId;
|
this.name = name;
|
this.resItemId = resItemId;
|
this.lectureType = lectureType;
|
this.tenantId = tenantId;
|
this.status = status;
|
this.updateTime = updateTime;
|
this.createTime = createTime;
|
this.deleteFlag = deleteFlag;
|
this.remark = remark;
|
}
|
|
@Id
|
@GeneratedValue(generator = "hibernate-uuid")
|
@GenericGenerator(name = "hibernate-uuid", strategy = "uuid")
|
@Column(name = "LECTURE_ID", unique = true, nullable = false, length = 32)
|
public String getLectureId() {
|
return this.lectureId;
|
}
|
|
public void setLectureId(String lectureId) {
|
this.lectureId = lectureId;
|
}
|
|
@Column(name = "NAME", length = 128)
|
public String getName() {
|
return this.name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
@Column(name = "RES_ITEM_ID", length = 32)
|
public String getResItemId() {
|
return this.resItemId;
|
}
|
|
public void setResItemId(String resItemId) {
|
this.resItemId = resItemId;
|
}
|
|
@Column(name = "LECTURE_TYPE", length = 16)
|
public String getLectureType() {
|
return this.lectureType;
|
}
|
|
public void setLectureType(String lectureType) {
|
this.lectureType = lectureType;
|
}
|
|
@Column(name = "TENANT_ID", length = 32)
|
public String getTenantId() {
|
return this.tenantId;
|
}
|
|
public void setTenantId(String tenantId) {
|
this.tenantId = tenantId;
|
}
|
|
@Column(name = "STATUS", length = 16)
|
public String getStatus() {
|
return this.status;
|
}
|
|
public void setStatus(String status) {
|
this.status = status;
|
}
|
|
@Temporal(TemporalType.TIMESTAMP)
|
@Column(name = "UPDATE_TIME", nullable = false, length = 19)
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@JsonIgnore
|
public Date getUpdateTime() {
|
return this.updateTime;
|
}
|
|
public void setUpdateTime(Date updateTime) {
|
this.updateTime = updateTime;
|
}
|
|
@Temporal(TemporalType.TIMESTAMP)
|
@Column(name = "CREATE_TIME", nullable = false, length = 19)
|
@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 = "DELETE_FLAG", nullable = false)
|
public boolean getDeleteFlag() {
|
return this.deleteFlag;
|
}
|
|
public void setDeleteFlag(boolean deleteFlag) {
|
this.deleteFlag = deleteFlag;
|
}
|
|
@Column(name = "REMARK")
|
public String getRemark() {
|
return this.remark;
|
}
|
|
public void setRemark(String remark) {
|
this.remark = remark;
|
}
|
|
@Column(name = "SUBJECT_ID")
|
public String getSubjectId() {
|
return subjectId;
|
}
|
|
public void setSubjectId(String subjectId) {
|
this.subjectId = subjectId;
|
}
|
|
@Column(name = "CHAPTER_ID")
|
public String getChapterId() {
|
return chapterId;
|
}
|
|
public void setChapterId(String chapterId) {
|
this.chapterId = chapterId;
|
}
|
|
@Column(name = "UPDATE_ID")
|
public String getUpdateId() {
|
return updateId;
|
}
|
|
public void setUpdateId(String updateId) {
|
this.updateId = updateId;
|
}
|
|
@Column(name = "UPDATOR")
|
public String getUpdator() {
|
return updator;
|
}
|
|
public void setUpdator(String updator) {
|
this.updator = updator;
|
}
|
|
@Column(name = "CREATOR")
|
public String getCreator() {
|
return creator;
|
}
|
|
public void setCreator(String creator) {
|
this.creator = creator;
|
}
|
|
@Column(name = "CREATE_ID")
|
public String getCreateId() {
|
return createId;
|
}
|
|
public void setCreateId(String createId) {
|
this.createId = createId;
|
}
|
}
|