hz-zhhq-app-service/greenH5modul/.svn/pristine/3c/3c99bc7789fb52427c175ae535a...

362 lines
6.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.nationalelectric.greenH5.po;
//导入 java 类
import java.io.Serializable;
import java.util.*;
import org.apache.commons.lang.builder.EqualsBuilder;
/**
* GreenHealthMsg的POJO类
*
* @author wjx
*/
public class GreenHealthMsg implements Serializable{
/**
* 序列化
*/
private static final long serialVersionUID = 1L;
/**
* 属性id
*/
private Long id;
/**
* 属性title
*/
private String title;
/**
* 属性desInfo
*/
private String desInfo;
/**
* 属性type
*/
private String type;
/**
* 属性cate
*/
private String cate;
/**
* 属性content
*/
private String content;
/**
* 属性author
*/
private String author;
/**
* 属性isDel
*/
private String isDel = "1";
/**
* 属性status
*/
private String status;
/**
* 属性creater
*/
private String creater;
/**
* 属性createTime
*/
private Date createTime = new Date();
/**
* 属性updater
*/
private String updater;
/**
* 属性updateTime
*/
private Date updateTime = new Date();
/**
* GreenHealthMsg构造函数
*/
public GreenHealthMsg() {
super();
}
/**
* GreenHealthMsg完整的构造函数
*/
public GreenHealthMsg(Long id,String title,String type,String cate,Date createTime){
this.id = id;
this.title = title;
this.type = type;
this.cate = cate;
this.createTime = createTime;
}
/**
* 属性 id 的get方法
* @return Long
*/
public Long getId(){
return id;
}
/**
* 属性 id 的set方法
* @return
*/
public void setId(Long id){
this.id = id;
}
/**
* 属性 标题 的get方法
* @return String
*/
public String getTitle(){
return title;
}
/**
* 属性 标题 的set方法
* @return
*/
public void setTitle(String title){
this.title = title;
}
/**
* 属性 描述 的get方法
* @return String
*/
public String getDesInfo(){
return desInfo;
}
/**
* 属性 描述 的set方法
* @return
*/
public void setDesInfo(String desInfo){
this.desInfo = desInfo;
}
/**
* 属性 类型 的get方法
* @return String
*/
public String getType(){
return type;
}
/**
* 属性 类型 的set方法
* @return
*/
public void setType(String type){
this.type = type;
}
/**
* 属性 类别 的get方法
* @return String
*/
public String getCate(){
return cate;
}
/**
* 属性 类别 的set方法
* @return
*/
public void setCate(String cate){
this.cate = cate;
}
/**
* 属性 内容 的get方法
* @return String
*/
public String getContent(){
return content;
}
/**
* 属性 内容 的set方法
* @return
*/
public void setContent(String content){
this.content = content;
}
/**
* 属性 作者 的get方法
* @return String
*/
public String getAuthor(){
return author;
}
/**
* 属性 作者 的set方法
* @return
*/
public void setAuthor(String author){
this.author = author;
}
/**
* 属性 删除0-删除1-未删除 的get方法
* @return String
*/
public String getIsDel(){
return isDel;
}
/**
* 属性 删除0-删除1-未删除 的set方法
* @return
*/
public void setIsDel(String isDel){
this.isDel = isDel;
}
/**
* 属性 状态0-保存1-发布 的get方法
* @return String
*/
public String getStatus(){
return status;
}
/**
* 属性 状态0-保存1-发布 的set方法
* @return
*/
public void setStatus(String status){
this.status = status;
}
/**
* 属性 创建人 的get方法
* @return String
*/
public String getCreater(){
return creater;
}
/**
* 属性 创建人 的set方法
* @return
*/
public void setCreater(String creater){
this.creater = creater;
}
/**
* 属性 创建时间 的get方法
* @return Date
*/
public Date getCreateTime(){
return createTime;
}
/**
* 属性 创建时间 的set方法
* @return
*/
public void setCreateTime(Date createTime){
this.createTime = createTime;
}
/**
* 属性 更新人 的get方法
* @return String
*/
public String getUpdater(){
return updater;
}
/**
* 属性 更新人 的set方法
* @return
*/
public void setUpdater(String updater){
this.updater = updater;
}
/**
* 属性 更新时间 的get方法
* @return Date
*/
public Date getUpdateTime(){
return updateTime;
}
/**
* 属性 更新时间 的set方法
* @return
*/
public void setUpdateTime(Date updateTime){
this.updateTime = updateTime;
}
/**
* Hibernate通过该方法判断对象是否相等
* @return boolean
*/
public boolean equals(Object o) {
if (this == o)
return true;
if (o == null || !(o instanceof GreenHealthMsg))
return false;
GreenHealthMsg other = (GreenHealthMsg) o;
return new EqualsBuilder()
.append(this.getId(), other.getId())
.isEquals();
}
/**
* toString方法
* @return String
*/
public String toString(){
return new StringBuffer()
.append("id"+":"+getId())
.append("title"+":"+getTitle())
.append("desInfo"+":"+getDesInfo())
.append("type"+":"+getType())
.append("cate"+":"+getCate())
.append("content"+":"+getContent())
.append("author"+":"+getAuthor())
.append("isDel"+":"+getIsDel())
.append("status"+":"+getStatus())
.append("creater"+":"+getCreater())
.append("createTime"+":"+getCreateTime())
.append("updater"+":"+getUpdater())
.append("updateTime"+":"+getUpdateTime())
.toString();
}
/**
* hashcode方法
* @return int
*
*/
@Override
public int hashCode(){
return super.hashCode();
}
}