package com.qxueyou.scc.teach.res.model;
|
// Generated 2018-3-11 10:57:10 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;
|
|
/**
|
* ResFile generated by hbm2java
|
*/
|
@Entity
|
@Table(name = "res_file")
|
public class ResFile implements java.io.Serializable,ITrace {
|
|
/**
|
*
|
*/
|
private static final long serialVersionUID = 4323997082899669942L;
|
private String fileId;
|
private String tenantId;
|
private String path;
|
private String fileType;
|
private String fileName;
|
private String fileFormat;
|
private Long size;
|
private String md5Hash;
|
private Date createTime;
|
private Date updateTime;
|
private String creator;
|
private String createId;
|
private String updator;
|
private String updateId;
|
private boolean deleteFlag;
|
|
public ResFile() {
|
}
|
|
public ResFile(String fileId, String path, Date createTime, Date updateTime, String creator, String createId,
|
boolean deleteFlag) {
|
this.fileId = fileId;
|
this.path = path;
|
this.createTime = createTime;
|
this.updateTime = updateTime;
|
this.creator = creator;
|
this.createId = createId;
|
this.deleteFlag = deleteFlag;
|
}
|
|
public ResFile(String fileId, String tenantId, String path, String fileType, String fileName, String fileFormat,
|
Long size, String md5Hash, Date createTime, Date updateTime, String creator, String createId,
|
String updator, String updateId, boolean deleteFlag) {
|
this.fileId = fileId;
|
this.tenantId = tenantId;
|
this.path = path;
|
this.fileType = fileType;
|
this.fileName = fileName;
|
this.fileFormat = fileFormat;
|
this.size = size;
|
this.md5Hash = md5Hash;
|
this.createTime = createTime;
|
this.updateTime = updateTime;
|
this.creator = creator;
|
this.createId = createId;
|
this.updator = updator;
|
this.updateId = updateId;
|
this.deleteFlag = deleteFlag;
|
}
|
|
@Id
|
@GeneratedValue(generator = "hibernate-uuid")
|
@GenericGenerator(name = "hibernate-uuid", strategy = "uuid")
|
@Column(name = "FILE_ID", unique = true, nullable = false, length = 32)
|
public String getFileId() {
|
return this.fileId;
|
}
|
|
public void setFileId(String fileId) {
|
this.fileId = fileId;
|
}
|
|
@Column(name = "TENANT_ID", length = 32)
|
public String getTenantId() {
|
return this.tenantId;
|
}
|
|
public void setTenantId(String tenantId) {
|
this.tenantId = tenantId;
|
}
|
|
@Column(name = "PATH", nullable = false)
|
public String getPath() {
|
return this.path;
|
}
|
|
public void setPath(String path) {
|
this.path = path;
|
}
|
|
@Column(name = "FILE_TYPE", length = 255)
|
public String getFileType() {
|
return this.fileType;
|
}
|
|
public void setFileType(String fileType) {
|
this.fileType = fileType;
|
}
|
|
@Column(name = "FILE_NAME")
|
public String getFileName() {
|
return this.fileName;
|
}
|
|
public void setFileName(String fileName) {
|
this.fileName = fileName;
|
}
|
|
@Column(name = "FILE_FORMAT", length = 32)
|
public String getFileFormat() {
|
return this.fileFormat;
|
}
|
|
public void setFileFormat(String fileFormat) {
|
this.fileFormat = fileFormat;
|
}
|
|
@Column(name = "SIZE", precision = 15, scale = 0)
|
public Long getSize() {
|
return this.size;
|
}
|
|
public void setSize(Long size) {
|
this.size = size;
|
}
|
|
@Column(name = "MD5_HASH", length = 32)
|
public String getMd5Hash() {
|
return this.md5Hash;
|
}
|
|
public void setMd5Hash(String md5Hash) {
|
this.md5Hash = md5Hash;
|
}
|
|
@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;
|
}
|
|
}
|