129 lines
3.9 KiB
Java
129 lines
3.9 KiB
Java
|
|
package com.rzyc.model;
|
||
|
|
|
||
|
|
import io.swagger.annotations.ApiModel;
|
||
|
|
import io.swagger.annotations.ApiModelProperty;
|
||
|
|
|
||
|
|
import java.io.Serializable;
|
||
|
|
import java.util.Date;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @author
|
||
|
|
*/
|
||
|
|
@ApiModel("动态分类")
|
||
|
|
public class NewsClass implements Serializable {
|
||
|
|
|
||
|
|
@ApiModelProperty("动态分类Id")
|
||
|
|
private String newsclassid;
|
||
|
|
|
||
|
|
@ApiModelProperty("动态分类名")
|
||
|
|
private String newstype;
|
||
|
|
|
||
|
|
private Date createdon;
|
||
|
|
|
||
|
|
private String createdby;
|
||
|
|
|
||
|
|
private Date modifiedon;
|
||
|
|
|
||
|
|
private String modifiedby;
|
||
|
|
|
||
|
|
private static final long serialVersionUID = 1L;
|
||
|
|
|
||
|
|
public String getNewsclassid() {
|
||
|
|
return newsclassid;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setNewsclassid(String newsclassid) {
|
||
|
|
this.newsclassid = newsclassid;
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getNewstype() {
|
||
|
|
return newstype;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setNewstype(String newstype) {
|
||
|
|
this.newstype = newstype;
|
||
|
|
}
|
||
|
|
|
||
|
|
public Date getCreatedon() {
|
||
|
|
return createdon;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setCreatedon(Date createdon) {
|
||
|
|
this.createdon = createdon;
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getCreatedby() {
|
||
|
|
return createdby;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setCreatedby(String createdby) {
|
||
|
|
this.createdby = createdby;
|
||
|
|
}
|
||
|
|
|
||
|
|
public Date getModifiedon() {
|
||
|
|
return modifiedon;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setModifiedon(Date modifiedon) {
|
||
|
|
this.modifiedon = modifiedon;
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getModifiedby() {
|
||
|
|
return modifiedby;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setModifiedby(String modifiedby) {
|
||
|
|
this.modifiedby = modifiedby;
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public boolean equals(Object that) {
|
||
|
|
if (this == that) {
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
if (that == null) {
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
if (getClass() != that.getClass()) {
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
NewsClass other = (NewsClass) that;
|
||
|
|
return (this.getNewsclassid() == null ? other.getNewsclassid() == null : this.getNewsclassid().equals(other.getNewsclassid()))
|
||
|
|
&& (this.getNewstype() == null ? other.getNewstype() == null : this.getNewstype().equals(other.getNewstype()))
|
||
|
|
&& (this.getCreatedon() == null ? other.getCreatedon() == null : this.getCreatedon().equals(other.getCreatedon()))
|
||
|
|
&& (this.getCreatedby() == null ? other.getCreatedby() == null : this.getCreatedby().equals(other.getCreatedby()))
|
||
|
|
&& (this.getModifiedon() == null ? other.getModifiedon() == null : this.getModifiedon().equals(other.getModifiedon()))
|
||
|
|
&& (this.getModifiedby() == null ? other.getModifiedby() == null : this.getModifiedby().equals(other.getModifiedby()));
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public int hashCode() {
|
||
|
|
final int prime = 31;
|
||
|
|
int result = 1;
|
||
|
|
result = prime * result + ((getNewsclassid() == null) ? 0 : getNewsclassid().hashCode());
|
||
|
|
result = prime * result + ((getNewstype() == null) ? 0 : getNewstype().hashCode());
|
||
|
|
result = prime * result + ((getCreatedon() == null) ? 0 : getCreatedon().hashCode());
|
||
|
|
result = prime * result + ((getCreatedby() == null) ? 0 : getCreatedby().hashCode());
|
||
|
|
result = prime * result + ((getModifiedon() == null) ? 0 : getModifiedon().hashCode());
|
||
|
|
result = prime * result + ((getModifiedby() == null) ? 0 : getModifiedby().hashCode());
|
||
|
|
return result;
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public String toString() {
|
||
|
|
StringBuilder sb = new StringBuilder();
|
||
|
|
sb.append(getClass().getSimpleName());
|
||
|
|
sb.append(" [");
|
||
|
|
sb.append("Hash = ").append(hashCode());
|
||
|
|
sb.append(", newsclassid=").append(newsclassid);
|
||
|
|
sb.append(", newstype=").append(newstype);
|
||
|
|
sb.append(", createdon=").append(createdon);
|
||
|
|
sb.append(", createdby=").append(createdby);
|
||
|
|
sb.append(", modifiedon=").append(modifiedon);
|
||
|
|
sb.append(", modifiedby=").append(modifiedby);
|
||
|
|
sb.append(", serialVersionUID=").append(serialVersionUID);
|
||
|
|
sb.append("]");
|
||
|
|
return sb.toString();
|
||
|
|
}
|
||
|
|
}
|