package pwc.taxtech.atms.entity; import java.util.Date; public class BaseEntity { private String createBy; private String updateBy; private Date createTime; private Date updateTime; public BaseEntity() { Date now = new Date(); this.createTime = now; this.updateTime = now; } public String getCreateBy() { return createBy; } public void setCreateBy(String createBy) { this.createBy = createBy; } public String getUpdateBy() { return updateBy; } public void setUpdateBy(String updateBy) { this.updateBy = updateBy; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } public Date getUpdateTime() { return updateTime == null ? new Date() : updateTime; } public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; } }