241 lines
4.3 KiB
Plaintext
241 lines
4.3 KiB
Plaintext
package com.nationalelectric.greenH5.po;
|
|
//导入 java 类
|
|
import java.io.Serializable;
|
|
import java.util.*;
|
|
import org.apache.commons.lang.builder.EqualsBuilder;
|
|
|
|
/**
|
|
* UploadFile的POJO类
|
|
*
|
|
* @author wjx
|
|
*/
|
|
public class UploadFile implements Serializable{
|
|
/**
|
|
* 序列化
|
|
*/
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
/**
|
|
* 属性id
|
|
*/
|
|
private String id;
|
|
|
|
/**
|
|
* 属性fileName
|
|
*/
|
|
private String fileName;
|
|
|
|
/**
|
|
* 属性fileData
|
|
*/
|
|
private String fileData;
|
|
|
|
/**
|
|
* 属性filePath
|
|
*/
|
|
private String filePath;
|
|
|
|
/**
|
|
* 属性fileType
|
|
*/
|
|
private String fileType;
|
|
|
|
/**
|
|
* 属性relationId
|
|
*/
|
|
private String relationId;
|
|
|
|
/**
|
|
* 属性createTime
|
|
*/
|
|
private Date createTime;
|
|
|
|
/**
|
|
* 属性createBy
|
|
*/
|
|
private String createBy;
|
|
|
|
/**
|
|
* UploadFile构造函数
|
|
*/
|
|
public UploadFile() {
|
|
super();
|
|
}
|
|
|
|
/**
|
|
* UploadFile完整的构造函数
|
|
*/
|
|
public UploadFile(String id){
|
|
this.id = id;
|
|
}
|
|
|
|
|
|
public String getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(String id) {
|
|
this.id = id;
|
|
}
|
|
|
|
/**
|
|
* 属性 file_name 的get方法
|
|
* @return String
|
|
*/
|
|
public String getFileName(){
|
|
return fileName;
|
|
}
|
|
|
|
/**
|
|
* 属性 file_name 的set方法
|
|
* @return
|
|
*/
|
|
public void setFileName(String fileName){
|
|
this.fileName = fileName;
|
|
}
|
|
|
|
/**
|
|
* 属性 file_data 的get方法
|
|
* @return String
|
|
*/
|
|
public String getFileData(){
|
|
return fileData;
|
|
}
|
|
|
|
/**
|
|
* 属性 file_data 的set方法
|
|
* @return
|
|
*/
|
|
public void setFileData(String fileData){
|
|
this.fileData = fileData;
|
|
}
|
|
|
|
/**
|
|
* 属性 file_path 的get方法
|
|
* @return String
|
|
*/
|
|
public String getFilePath(){
|
|
return filePath;
|
|
}
|
|
|
|
/**
|
|
* 属性 file_path 的set方法
|
|
* @return
|
|
*/
|
|
public void setFilePath(String filePath){
|
|
this.filePath = filePath;
|
|
}
|
|
|
|
/**
|
|
* 属性 file_type 的get方法
|
|
* @return String
|
|
*/
|
|
public String getFileType(){
|
|
return fileType;
|
|
}
|
|
|
|
/**
|
|
* 属性 file_type 的set方法
|
|
* @return
|
|
*/
|
|
public void setFileType(String fileType){
|
|
this.fileType = fileType;
|
|
}
|
|
|
|
/**
|
|
* 属性 relation_id 的get方法
|
|
* @return String
|
|
*/
|
|
public String getRelationId(){
|
|
return relationId;
|
|
}
|
|
|
|
/**
|
|
* 属性 relation_id 的set方法
|
|
* @return
|
|
*/
|
|
public void setRelationId(String relationId){
|
|
this.relationId = relationId;
|
|
}
|
|
|
|
/**
|
|
* 属性 create_time 的get方法
|
|
* @return Date
|
|
*/
|
|
public Date getCreateTime(){
|
|
return createTime;
|
|
}
|
|
|
|
/**
|
|
* 属性 create_time 的set方法
|
|
* @return
|
|
*/
|
|
public void setCreateTime(Date createTime){
|
|
this.createTime = createTime;
|
|
}
|
|
|
|
/**
|
|
* 属性 create_by 的get方法
|
|
* @return String
|
|
*/
|
|
public String getCreateBy(){
|
|
return createBy;
|
|
}
|
|
|
|
/**
|
|
* 属性 create_by 的set方法
|
|
* @return
|
|
*/
|
|
public void setCreateBy(String createBy){
|
|
this.createBy = createBy;
|
|
}
|
|
|
|
/**
|
|
* Hibernate通过该方法判断对象是否相等
|
|
* @return boolean
|
|
*/
|
|
public boolean equals(Object o) {
|
|
if (this == o)
|
|
return true;
|
|
|
|
if (o == null || !(o instanceof UploadFile))
|
|
return false;
|
|
|
|
|
|
UploadFile other = (UploadFile) o;
|
|
return new EqualsBuilder()
|
|
.append(this.getId(), other.getId())
|
|
.isEquals();
|
|
}
|
|
|
|
/**
|
|
* toString方法
|
|
* @return String
|
|
*/
|
|
public String toString(){
|
|
|
|
return new StringBuffer()
|
|
.append("id"+":"+getId())
|
|
.append("fileName"+":"+getFileName())
|
|
.append("fileData"+":"+getFileData())
|
|
.append("filePath"+":"+getFilePath())
|
|
.append("fileType"+":"+getFileType())
|
|
.append("relationId"+":"+getRelationId())
|
|
.append("createTime"+":"+getCreateTime())
|
|
.append("createBy"+":"+getCreateBy())
|
|
.toString();
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
* hashcode方法
|
|
* @return int
|
|
*
|
|
*/
|
|
@Override
|
|
public int hashCode(){
|
|
return super.hashCode();
|
|
}
|
|
|
|
} |