package com.qxueyou.scc.school.model; import java.io.Serializable; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.NamedQuery; import javax.persistence.Table; import com.qxueyou.scc.base.model.ITrace; import com.fasterxml.jackson.annotation.JsonIgnore; /** * 文件表 */ @Entity @Table(name="sch_file") @NamedQuery(name="SchFile.findAll", query="SELECT s FROM SchFile s") public class SchFile implements Serializable, ITrace { private static final long serialVersionUID = 1L; @Id @Column(name="file_id") private String fileId; @Column(name="CREATE_ID") @JsonIgnore private String createId; @Column(name="CREATE_TIME") @JsonIgnore private Date createTime; @JsonIgnore private String creator; @Column(name="DELETE_FLAG") @JsonIgnore private boolean deleteFlag; @Column(name="file_type") private String fileType; @Column(name="file_Name") private String fileName; @Column(name="object_id") private String objectId; @Column(name="object_type") private String objectType; @Column(name="order_no") private int orderNo; @JsonIgnore @Column(name="REMARK") private String remark; @Column(name="SIZE") private String size; @Column(name="UPDATE_ID") @JsonIgnore private String updateId; @Column(name="UPDATE_TIME") @JsonIgnore private Date updateTime; @JsonIgnore private String updator; private String url; public String getFileName() { try { return this.fileName == null?"":URLDecoder.decode(this.fileName, "utf-8"); } catch (UnsupportedEncodingException e) { return ""; } } public void setFileName(String fileName) { this.fileName = fileName; } public String getFileId() { return this.fileId; } public void setFileId(String fileId) { this.fileId = fileId; } public String getCreateId() { return this.createId; } public void setCreateId(String createId) { this.createId = createId; } public Date getCreateTime() { return this.createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } public String getCreator() { return this.creator; } public void setCreator(String creator) { this.creator = creator; } public boolean getDeleteFlag() { return this.deleteFlag; } public void setDeleteFlag(boolean deleteFlag) { this.deleteFlag = deleteFlag; } public String getFileType() { return this.fileType; } public void setFileType(String fileType) { this.fileType = fileType; } public String getObjectId() { return this.objectId; } public void setObjectId(String objectId) { this.objectId = objectId; } public String getObjectType() { return this.objectType; } public void setObjectType(String objectType) { this.objectType = objectType; } public int getOrderNo() { return this.orderNo; } public void setOrderNo(int orderNo) { this.orderNo = orderNo; } public String getRemark() { return this.remark; } public void setRemark(String remark) { this.remark = remark; } public String getSize() { return this.size; } public void setSize(String size) { this.size = size; } public String getUpdateId() { return this.updateId; } public void setUpdateId(String updateId) { this.updateId = updateId; } public Date getUpdateTime() { return this.updateTime; } public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; } public String getUpdator() { return this.updator; } public void setUpdator(String updator) { this.updator = updator; } public String getUrl() { return this.url; } public void setUrl(String url) { this.url = url; } }