hz-zhhq-app-service/greenH5modul/.svn/pristine/79/793daf9476b593f87dc168204a2...

276 lines
5.1 KiB
Plaintext
Raw Normal View History

2025-01-21 13:12:35 +08:00
package com.nationalelectric.greenH5.po;
//导入 java 类
import java.io.Serializable;
import java.util.Date;
import org.apache.commons.lang.builder.EqualsBuilder;
/**
* GreenCalendar的POJO类
*
* @author wjx
*/
public class GreenCalendar implements Serializable{
/**
* 序列化
*/
private static final long serialVersionUID = 1L;
/**
* 属性uuid
*/
private String uuid;
/**
* 属性dateName
*/
private Date dateName;
/**
* 属性weekName
*/
private String weekName;
/**
* 属性isholiday
*/
private String isholiday;
/**
* 属性createBy
*/
private String createBy;
/**
* 属性createTime
*/
private Date createTime;
/**
* 属性modifyBy
*/
private String modifyBy;
/**
* 属性modifyTime
*/
private Date modifyTime;
/**
* 属性isDelete
*/
private String isDelete = "N";
/**
* GreenCalendar构造函数
*/
public GreenCalendar() {
super();
}
/**
* GreenCalendar完整的构造函数
*/
public GreenCalendar(String uuid){
this.uuid = uuid;
}
/**
* 属性 UUID 的get方法
* @return String
*/
public String getUuid(){
return uuid;
}
/**
* 属性 UUID 的set方法
* @return
*/
public void setUuid(String uuid){
if(uuid != null && uuid.trim().length() == 0){
this.uuid = null;
}else{
this.uuid = uuid;
}
}
/**
* 属性 DATE_NAME 的get方法
* @return Date
*/
public Date getDateName(){
return dateName;
}
/**
* 属性 DATE_NAME 的set方法
* @return
*/
public void setDateName(Date dateName){
this.dateName = dateName;
}
/**
* 属性 WEEK_NAME 的get方法
* @return String
*/
public String getWeekName(){
return weekName;
}
/**
* 属性 WEEK_NAME 的set方法
* @return
*/
public void setWeekName(String weekName){
this.weekName = weekName;
}
/**
* 属性 1休息 2工作 的get方法
* @return String
*/
public String getIsholiday(){
return isholiday;
}
/**
* 属性 1休息 2工作 的set方法
* @return
*/
public void setIsholiday(String isholiday){
this.isholiday = isholiday;
}
/**
* 属性 CREATE_BY 的get方法
* @return String
*/
public String getCreateBy(){
return createBy;
}
/**
* 属性 CREATE_BY 的set方法
* @return
*/
public void setCreateBy(String createBy){
this.createBy = createBy;
}
/**
* 属性 CREATE_TIME 的get方法
* @return Date
*/
public Date getCreateTime(){
return createTime;
}
/**
* 属性 CREATE_TIME 的set方法
* @return
*/
public void setCreateTime(Date createTime){
this.createTime = createTime;
}
/**
* 属性 MODIFY_BY 的get方法
* @return String
*/
public String getModifyBy(){
return modifyBy;
}
/**
* 属性 MODIFY_BY 的set方法
* @return
*/
public void setModifyBy(String modifyBy){
this.modifyBy = modifyBy;
}
/**
* 属性 MODIFY_TIME 的get方法
* @return Date
*/
public Date getModifyTime(){
return modifyTime;
}
/**
* 属性 MODIFY_TIME 的set方法
* @return
*/
public void setModifyTime(Date modifyTime){
this.modifyTime = modifyTime;
}
/**
* 属性 0 的get方法
* @return String
*/
public String getIsDelete(){
return isDelete;
}
/**
* 属性 0 的set方法
* @return
*/
public void setIsDelete(String isDelete){
this.isDelete = isDelete;
}
/**
* Hibernate通过该方法判断对象是否相等
* @return boolean
*/
public boolean equals(Object o) {
if (this == o)
return true;
if (o == null || !(o instanceof GreenCalendar))
return false;
if(getUuid() == null)
return false;
GreenCalendar other = (GreenCalendar) o;
return new EqualsBuilder()
.append(this.getUuid(), other.getUuid())
.isEquals();
}
/**
* toString方法
* @return String
*/
public String toString(){
return new StringBuffer()
.append("uuid"+":"+getUuid())
.append("dateName"+":"+getDateName())
.append("weekName"+":"+getWeekName())
.append("isholiday"+":"+getIsholiday())
.append("createBy"+":"+getCreateBy())
.append("createTime"+":"+getCreateTime())
.append("modifyBy"+":"+getModifyBy())
.append("modifyTime"+":"+getModifyTime())
.append("isDelete"+":"+getIsDelete())
.toString();
}
/**
* hashcode方法
* @return int
*
*/
@Override
public int hashCode(){
return super.hashCode();
}
}