package com.qxueyou.scc.teach.res.model;
|
// Generated 2018-3-11 10:57:10 by Hibernate Tools 5.2.8.Final
|
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
import com.qxueyou.scc.base.model.ITrace;
|
import org.hibernate.annotations.GenericGenerator;
|
import org.springframework.format.annotation.DateTimeFormat;
|
import javax.persistence.*;
|
import java.util.Date;
|
|
/**
|
* ResItem generated by hbm2java
|
*/
|
@Entity
|
@Table(name = "res")
|
public class Res implements java.io.Serializable, ITrace {
|
|
/**
|
*
|
*/
|
private static final long serialVersionUID = 3267758298280722636L;
|
private String resId;
|
private String resDirId;
|
private String libId;
|
private String tenantId;
|
private String name;
|
private String type;
|
private String itemDestId;
|
private int useCount;
|
private int resOrder;
|
private Date createTime;
|
private Date updateTime;
|
private String creator;
|
private String createId;
|
private String updator;
|
private String updateId;
|
private boolean deleteFlag;
|
private String coverPageUrl;
|
private String status;
|
private String remark;
|
private String fileId;
|
|
|
|
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 FILE_TYPE_VIDEO = "0";
|
|
public final static String FILE_TYPE_AUDIO = "1";
|
|
public final static String FILE_TYPE_DOC = "2";
|
|
public final static String FILE_TYPE_EXERCISE = "3";
|
|
public final static String FILE_TYPE_ARTICLE = "4";
|
|
public Res() {
|
}
|
|
public Res(String resId, String tenantId, String type, String itemDestId, int useCount, Date createTime,
|
Date updateTime, String creator, String createId, String updator, String updateId, boolean deleteFlag,
|
String status) {
|
this.resId = resId;
|
this.tenantId = tenantId;
|
this.type = type;
|
this.itemDestId = itemDestId;
|
this.useCount = useCount;
|
this.createTime = createTime;
|
this.updateTime = updateTime;
|
this.creator = creator;
|
this.createId = createId;
|
this.updator = updator;
|
this.updateId = updateId;
|
this.deleteFlag = deleteFlag;
|
this.status = status;
|
}
|
|
public Res(String itemId, String tenantId, String name, String type, String itemDestId, int useCount,
|
Date createTime, Date updateTime, String creator, String createId, String updator, String updateId,
|
boolean deleteFlag, String coverPageUrl, String status) {
|
this.resId = itemId;
|
this.tenantId = tenantId;
|
this.name = name;
|
this.type = type;
|
this.itemDestId = itemDestId;
|
this.useCount = useCount;
|
this.createTime = createTime;
|
this.updateTime = updateTime;
|
this.creator = creator;
|
this.createId = createId;
|
this.updator = updator;
|
this.updateId = updateId;
|
this.deleteFlag = deleteFlag;
|
this.coverPageUrl = coverPageUrl;
|
this.status = status;
|
}
|
|
@Id
|
@GeneratedValue(generator = "hibernate-uuid")
|
@GenericGenerator(name = "hibernate-uuid", strategy = "uuid")
|
@Column(name = "RES_ID", unique = true, nullable = false, length = 32)
|
public String getResId() {
|
return this.resId;
|
}
|
|
public void setResId(String resId) {
|
this.resId = resId;
|
}
|
|
@Column(name = "TENANT_ID", nullable = false, length = 32)
|
public String getTenantId() {
|
return this.tenantId;
|
}
|
|
public void setTenantId(String tenantId) {
|
this.tenantId = tenantId;
|
}
|
|
@Column(name = "NAME", length = 128)
|
public String getName() {
|
return this.name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
@Column(name = "TYPE", nullable = false)
|
public String getType() {
|
return this.type;
|
}
|
|
public void setType(String type) {
|
this.type = type;
|
}
|
|
@Column(name = "ITEM_DEST_ID", nullable = false, length = 32)
|
public String getItemDestId() {
|
return this.itemDestId;
|
}
|
|
public void setItemDestId(String itemDestId) {
|
this.itemDestId = itemDestId;
|
}
|
|
@Column(name = "USE_COUNT", nullable = false)
|
public int getUseCount() {
|
return this.useCount;
|
}
|
|
public void setUseCount(int useCount) {
|
this.useCount = useCount;
|
}
|
|
@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", nullable = false, length = 100)
|
public String getUpdator() {
|
return this.updator;
|
}
|
|
public void setUpdator(String updator) {
|
this.updator = updator;
|
}
|
|
@Column(name = "UPDATE_ID", nullable = false, length = 32)
|
public String getUpdateId() {
|
return this.updateId;
|
}
|
|
public void setUpdateId(String updateId) {
|
this.updateId = updateId;
|
}
|
|
@Column(name = "DELETE_FLAG", nullable = false)
|
public boolean getDeleteFlag() {
|
return this.deleteFlag;
|
}
|
|
public void setDeleteFlag(boolean deleteFlag) {
|
this.deleteFlag = deleteFlag;
|
}
|
|
@Column(name = "COVER_PAGE_URL", length = 512)
|
public String getCoverPageUrl() {
|
return this.coverPageUrl;
|
}
|
|
public void setCoverPageUrl(String coverPageUrl) {
|
this.coverPageUrl = coverPageUrl;
|
}
|
|
@Column(name = "STATUS", nullable = false, length = 16)
|
public String getStatus() {
|
return this.status;
|
}
|
|
public void setStatus(String status) {
|
this.status = status;
|
}
|
|
@Column(name = "RES_ORDER")
|
public int getResOrder() {
|
return resOrder;
|
}
|
|
public void setResOrder(int resOrder) {
|
this.resOrder = resOrder;
|
}
|
|
@Column(name = "RES_DIR_ID", length = 32)
|
public String getResDirId() {
|
return resDirId;
|
}
|
|
public void setResDirId(String resDirId) {
|
this.resDirId = resDirId;
|
}
|
|
@Column(name = "REMARK", length = 128)
|
public String getRemark() {
|
return remark;
|
}
|
|
public void setRemark(String remark) {
|
this.remark = remark;
|
}
|
|
@Column(name = "LIB_ID", length = 32)
|
public String getLibId() {
|
return libId;
|
}
|
|
public void setLibId(String resLibId) {
|
this.libId = resLibId;
|
}
|
|
@Transient
|
public String getFileId() {
|
return fileId;
|
}
|
|
public void setFileId(String fileId) {
|
this.fileId = fileId;
|
}
|
}
|