package com.zheng.cms.dao.model;
import java.io.Serializable;
public class CmsTopic implements Serializable {
/**
* 编号
*
* @mbg.generated
*/
private Integer topicId;
/**
* 标题
*
* @mbg.generated
*/
private String title;
/**
* 描述
*
* @mbg.generated
*/
private String description;
/**
* 链接
*
* @mbg.generated
*/
private String url;
/**
* 创建时间
*
* @mbg.generated
*/
private Long ctime;
private static final long serialVersionUID = 1L;
public Integer getTopicId() {
return topicId;
}
public void setTopicId(Integer topicId) {
this.topicId = topicId;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public Long getCtime() {
return ctime;
}
public void setCtime(Long ctime) {
this.ctime = ctime;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", topicId=").append(topicId);
sb.append(", title=").append(title);
sb.append(", description=").append(description);
sb.append(", url=").append(url);
sb.append(", ctime=").append(ctime);
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;
}
CmsTopic other = (CmsTopic) that;
return (this.getTopicId() == null ? other.getTopicId() == null : this.getTopicId().equals(other.getTopicId()))
&& (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
&& (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()))
&& (this.getUrl() == null ? other.getUrl() == null : this.getUrl().equals(other.getUrl()))
&& (this.getCtime() == null ? other.getCtime() == null : this.getCtime().equals(other.getCtime()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getTopicId() == null) ? 0 : getTopicId().hashCode());
result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
result = prime * result + ((getUrl() == null) ? 0 : getUrl().hashCode());
result = prime * result + ((getCtime() == null) ? 0 : getCtime().hashCode());
return result;
}
}