package com.qxueyou.scc.teach.res.model;
|
// Generated 2018-3-16 9:12:37 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;
|
|
/**
|
* ResLib generated by hbm2java
|
*/
|
@Entity
|
@Table(name = "res_lib")
|
public class ResLib implements java.io.Serializable,ITrace {
|
|
private static final long serialVersionUID = 4966621787683231275L;
|
private String libId;
|
private String rootDirId;
|
private Date createTime;
|
private Date updateTime;
|
private String creator;
|
private String createId;
|
private String updator;
|
private String updateId;
|
private boolean deleteFlag;
|
private String tenantId;
|
private String ownerType;
|
private String ownerId;
|
|
public final static String OWNNER_TYPE_ORG="org";
|
|
public final static String OWNNER_TYPE_USER="user";
|
|
public final static String OWNNER_TYPE_CLASS="class";
|
|
public ResLib() {
|
}
|
|
public ResLib(String libId, String rootDirId, Date createTime, Date updateTime, String creator, String createId,
|
boolean deleteFlag) {
|
this.libId = libId;
|
this.rootDirId = rootDirId;
|
this.createTime = createTime;
|
this.updateTime = updateTime;
|
this.creator = creator;
|
this.createId = createId;
|
this.deleteFlag = deleteFlag;
|
}
|
|
public ResLib(String libId, String rootDirId, Date createTime, Date updateTime, String creator, String createId,
|
String updator, String updateId, boolean deleteFlag, String tenantId, String ownerType, String ownerId) {
|
this.libId = libId;
|
this.rootDirId = rootDirId;
|
this.createTime = createTime;
|
this.updateTime = updateTime;
|
this.creator = creator;
|
this.createId = createId;
|
this.updator = updator;
|
this.updateId = updateId;
|
this.deleteFlag = deleteFlag;
|
this.tenantId = tenantId;
|
this.ownerType = ownerType;
|
this.ownerId = ownerId;
|
}
|
|
@Id
|
@GeneratedValue(generator = "hibernate-uuid")
|
@GenericGenerator(name = "hibernate-uuid", strategy = "uuid")
|
@Column(name = "LIB_ID", unique = true, nullable = false, length = 32)
|
public String getLibId() {
|
return this.libId;
|
}
|
|
public void setLibId(String libId) {
|
this.libId = libId;
|
}
|
|
@Column(name = "ROOT_DIR_ID", nullable = false)
|
public String getRootDirId() {
|
return this.rootDirId;
|
}
|
|
public void setRootDirId(String rootDirId) {
|
this.rootDirId = rootDirId;
|
}
|
|
@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 = "DELETE_FLAG", nullable = false)
|
public boolean getDeleteFlag() {
|
return this.deleteFlag;
|
}
|
|
public void setDeleteFlag(boolean deleteFlag) {
|
this.deleteFlag = deleteFlag;
|
}
|
|
@Column(name = "TENANT_ID", length = 32)
|
public String getTenantId() {
|
return this.tenantId;
|
}
|
|
public void setTenantId(String tenantId) {
|
this.tenantId = tenantId;
|
}
|
|
@Column(name = "OWNER_TYPE", length = 128)
|
public String getOwnerType() {
|
return this.ownerType;
|
}
|
|
public void setOwnerType(String ownnerType) {
|
this.ownerType = ownnerType;
|
}
|
|
@Column(name = "OWNER_ID", length = 128)
|
public String getOwnerId() {
|
return this.ownerId;
|
}
|
|
public void setOwnerId(String ownnerId) {
|
this.ownerId = ownnerId;
|
}
|
|
}
|