package com.nationalelectric.greenH5.po; //导入 java 类 import java.io.Serializable; import java.util.*; import org.apache.commons.lang.builder.EqualsBuilder; /** * GreenFaultReply的POJO类 * * @author wjx */ public class GreenFaultReply implements Serializable{ /** * 序列化 */ private static final long serialVersionUID = 1L; /** * 属性id */ private Long id; /** * 属性replyContent */ private String replyContent; /** * 属性replyDate */ private Date replyDate; /** * 属性createBy */ private String createBy; /** * 属性faultId */ private Long faultId; /** * 属性replyPic1 */ private String replyPic1; /** * 属性replyPic1Data */ private String replyPic1Data; /** * 属性replyPic2 */ private String replyPic2; /** * 属性replyPic2Data */ private String replyPic2Data; /** * GreenFaultReply构造函数 */ public GreenFaultReply() { super(); } /** * GreenFaultReply完整的构造函数 */ public GreenFaultReply(Long id){ this.id = id; } /** * 属性 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 getReplyContent(){ return replyContent; } /** * 属性 回复内容 的set方法 * @return */ public void setReplyContent(String replyContent){ this.replyContent = replyContent; } /** * 属性 回复时间 的get方法 * @return Date */ public Date getReplyDate(){ return replyDate; } /** * 属性 回复时间 的set方法 * @return */ public void setReplyDate(Date replyDate){ this.replyDate = replyDate; } /** * 属性 回复人 的get方法 * @return String */ public String getCreateBy(){ return createBy; } /** * 属性 回复人 的set方法 * @return */ public void setCreateBy(String createBy){ this.createBy = createBy; } /** * 属性 报修id 的get方法 * @return Long */ public Long getFaultId(){ return faultId; } /** * 属性 报修id 的set方法 * @return */ public void setFaultId(Long faultId){ this.faultId = faultId; } /** * 属性 reply_pic1 的get方法 * @return String */ public String getReplyPic1(){ return replyPic1; } /** * 属性 reply_pic1 的set方法 * @return */ public void setReplyPic1(String replyPic1){ this.replyPic1 = replyPic1; } /** * 属性 reply_pic1_data 的get方法 * @return String */ public String getReplyPic1Data(){ return replyPic1Data; } /** * 属性 reply_pic1_data 的set方法 * @return */ public void setReplyPic1Data(String replyPic1Data){ this.replyPic1Data = replyPic1Data; } /** * 属性 reply_pic2 的get方法 * @return String */ public String getReplyPic2(){ return replyPic2; } /** * 属性 reply_pic2 的set方法 * @return */ public void setReplyPic2(String replyPic2){ this.replyPic2 = replyPic2; } /** * 属性 reply_pic2_data 的get方法 * @return String */ public String getReplyPic2Data(){ return replyPic2Data; } /** * 属性 reply_pic2_data 的set方法 * @return */ public void setReplyPic2Data(String replyPic2Data){ this.replyPic2Data = replyPic2Data; } /** * Hibernate通过该方法判断对象是否相等 * @return boolean */ public boolean equals(Object o) { if (this == o) return true; if (o == null || !(o instanceof GreenFaultReply)) return false; GreenFaultReply other = (GreenFaultReply) o; return new EqualsBuilder() .append(this.getId(), other.getId()) .isEquals(); } /** * toString方法 * @return String */ public String toString(){ return new StringBuffer() .append("id"+":"+getId()) .append("replyContent"+":"+getReplyContent()) .append("replyDate"+":"+getReplyDate()) .append("createBy"+":"+getCreateBy()) .append("faultId"+":"+getFaultId()) .append("replyPic1"+":"+getReplyPic1()) .append("replyPic1Data"+":"+getReplyPic1Data()) .append("replyPic2"+":"+getReplyPic2()) .append("replyPic2Data"+":"+getReplyPic2Data()) .toString(); } /** * hashcode方法 * @return int * */ @Override public int hashCode(){ return super.hashCode(); } }