package com.boco.nbd.wios.downloadfile.model; import com.ihidea.core.base.CoreEntity; import java.util.Date; /** * @author haica */ public class CptDataInfo extends CoreEntity { private String id; private String storeName; private String description; private String fileName; private Integer fileSize; private Integer status; private String createAccount; private Date createTime; private String prefix; public String getId() { return id; } public void setId(String id) { this.id = id == null ? null : id.trim(); } public String getStoreName() { return storeName; } public void setStoreName(String storeName) { this.storeName = storeName == null ? null : storeName.trim(); } public String getDescription() { return description; } public void setDescription(String description) { this.description = description == null ? null : description.trim(); } public String getFileName() { return fileName; } public void setFileName(String fileName) { this.fileName = fileName == null ? null : fileName.trim(); } public Integer getFileSize() { return fileSize; } public void setFileSize(Integer fileSize) { this.fileSize = fileSize; } public Integer getStatus() { return status; } public void setStatus(Integer status) { this.status = status; } public String getCreateAccount() { return createAccount; } public void setCreateAccount(String createAccount) { this.createAccount = createAccount == null ? null : createAccount.trim(); } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } public String getPrefix() { return prefix; } public void setPrefix(String prefix) { this.prefix = prefix == null ? null : prefix.trim(); } @Override public boolean equals(Object that) { if (this == that) { return true; } if (that == null) { return false; } if (getClass() != that.getClass()) { return false; } CptDataInfo other = (CptDataInfo) that; return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) && (this.getStoreName() == null ? other.getStoreName() == null : this.getStoreName().equals(other.getStoreName())) && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription())) && (this.getFileName() == null ? other.getFileName() == null : this.getFileName().equals(other.getFileName())) && (this.getFileSize() == null ? other.getFileSize() == null : this.getFileSize().equals(other.getFileSize())) && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) && (this.getCreateAccount() == null ? other.getCreateAccount() == null : this.getCreateAccount().equals(other.getCreateAccount())) && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) && (this.getPrefix() == null ? other.getPrefix() == null : this.getPrefix().equals(other.getPrefix())); } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); result = prime * result + ((getStoreName() == null) ? 0 : getStoreName().hashCode()); result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode()); result = prime * result + ((getFileName() == null) ? 0 : getFileName().hashCode()); result = prime * result + ((getFileSize() == null) ? 0 : getFileSize().hashCode()); result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode()); result = prime * result + ((getCreateAccount() == null) ? 0 : getCreateAccount().hashCode()); result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); result = prime * result + ((getPrefix() == null) ? 0 : getPrefix().hashCode()); return result; } }