package com.zheng.cms.dao.model; import java.io.Serializable; public class CmsComment implements Serializable { /** * 编号 * * @mbg.generated */ private Integer commentId; /** * 回复楼中楼编号回复楼中楼编号 * * @mbg.generated */ private Integer pid; /** * 文章编号 * * @mbg.generated */ private Integer articleId; /** * 用户编号 * * @mbg.generated */ private Integer userId; /** * 状态(-1:不通过,0:未审核,1:通过) * * @mbg.generated */ private Byte status; /** * 评论人ip地址 * * @mbg.generated */ private String ip; /** * 评论人终端信息 * * @mbg.generated */ private String agent; /** * 所属系统 * * @mbg.generated */ private Integer systemId; /** * 创建时间 * * @mbg.generated */ private Long ctime; /** * 评论内容 * * @mbg.generated */ private String content; private static final long serialVersionUID = 1L; public Integer getCommentId() { return commentId; } public void setCommentId(Integer commentId) { this.commentId = commentId; } public Integer getPid() { return pid; } public void setPid(Integer pid) { this.pid = pid; } public Integer getArticleId() { return articleId; } public void setArticleId(Integer articleId) { this.articleId = articleId; } public Integer getUserId() { return userId; } public void setUserId(Integer userId) { this.userId = userId; } public Byte getStatus() { return status; } public void setStatus(Byte status) { this.status = status; } public String getIp() { return ip; } public void setIp(String ip) { this.ip = ip; } public String getAgent() { return agent; } public void setAgent(String agent) { this.agent = agent; } public Integer getSystemId() { return systemId; } public void setSystemId(Integer systemId) { this.systemId = systemId; } public Long getCtime() { return ctime; } public void setCtime(Long ctime) { this.ctime = ctime; } public String getContent() { return content; } public void setContent(String content) { this.content = content; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", commentId=").append(commentId); sb.append(", pid=").append(pid); sb.append(", articleId=").append(articleId); sb.append(", userId=").append(userId); sb.append(", status=").append(status); sb.append(", ip=").append(ip); sb.append(", agent=").append(agent); sb.append(", systemId=").append(systemId); sb.append(", ctime=").append(ctime); sb.append(", content=").append(content); sb.append("]"); return sb.toString(); } @Override public boolean equals(Object that) { if (this == that) { return true; } if (that == null) { return false; } if (getClass() != that.getClass()) { return false; } CmsComment other = (CmsComment) that; return (this.getCommentId() == null ? other.getCommentId() == null : this.getCommentId().equals(other.getCommentId())) && (this.getPid() == null ? other.getPid() == null : this.getPid().equals(other.getPid())) && (this.getArticleId() == null ? other.getArticleId() == null : this.getArticleId().equals(other.getArticleId())) && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId())) && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) && (this.getIp() == null ? other.getIp() == null : this.getIp().equals(other.getIp())) && (this.getAgent() == null ? other.getAgent() == null : this.getAgent().equals(other.getAgent())) && (this.getSystemId() == null ? other.getSystemId() == null : this.getSystemId().equals(other.getSystemId())) && (this.getCtime() == null ? other.getCtime() == null : this.getCtime().equals(other.getCtime())) && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent())); } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((getCommentId() == null) ? 0 : getCommentId().hashCode()); result = prime * result + ((getPid() == null) ? 0 : getPid().hashCode()); result = prime * result + ((getArticleId() == null) ? 0 : getArticleId().hashCode()); result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode()); result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode()); result = prime * result + ((getIp() == null) ? 0 : getIp().hashCode()); result = prime * result + ((getAgent() == null) ? 0 : getAgent().hashCode()); result = prime * result + ((getSystemId() == null) ? 0 : getSystemId().hashCode()); result = prime * result + ((getCtime() == null) ? 0 : getCtime().hashCode()); result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode()); return result; } }