📄 noticenewsdetail.java.svn-base
字号:
package com.szhelper.lotteryWeb.model;
import java.io.Serializable;
import java.util.Date;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.EqualsBuilder;
import com.szhelper.lotteryWeb.util.DateUtil;
public class NoticeNewsDetail implements Serializable {
private Integer id;
private Integer appId = 0;
private Integer trashed = 0;
private Date updateDate;
/**
* ������
*/
private Integer categoryId;
/**
* ����
*/
private String title;
/**
* ����
*/
private String content;
/**
* ��������
*/
private Date postDate = DateUtil.getToday().getTime();
/**
* ����
*/
private String author;
/**
* �Ƿ�̶�
*/
private Integer topLock = 0;
/**
* �鿴����
*/
private Integer viewCount = 0;
public Integer getCategoryId() {
return categoryId;
}
public void setCategoryId(Integer categoryId) {
this.categoryId = categoryId;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public Date getPostDate() {
return postDate;
}
public void setPostDate(Date postDate) {
this.postDate = postDate;
}
public String getAuthor() {
return author;
}
public void setAuthor(String author) {
this.author = author;
}
public Integer getTopLock() {
return topLock;
}
public void setTopLock(Integer topLock) {
this.topLock = topLock;
}
public Integer getViewCount() {
return viewCount;
}
public void setViewCount(Integer viewCount) {
this.viewCount = viewCount;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getAppId() {
return appId;
}
public void setAppId(Integer appId) {
this.appId = appId;
}
public Integer getTrashed() {
return trashed;
}
public void setTrashed(Integer trashed) {
this.trashed = trashed;
}
public Date getUpdateDate() {
return updateDate;
}
public void setUpdateDate(Date updateDate) {
this.updateDate = updateDate;
}
/**
* @see java.lang.Object#toString()
*/
public String toString() {
return new ToStringBuilder(this).append("topLock", this.topLock)
.append("content", this.content)
.append("trashed", this.trashed).append("categoryId",
this.categoryId).append("updateDate", this.updateDate)
.append("postDate", this.postDate).append("title", this.title)
.append("appId", this.appId)
.append("viewCount", this.viewCount).append("id", this.id)
.append("author", this.author).toString();
}
/**
* @see java.lang.Object#hashCode()
*/
public int hashCode() {
return new HashCodeBuilder(1216394785, -158497327).appendSuper(
super.hashCode()).append(this.content).append(this.id).append(
this.author).append(this.title).append(this.trashed).append(
this.appId).append(this.postDate).append(this.topLock).append(
this.categoryId).append(this.viewCount).append(this.updateDate)
.toHashCode();
}
/**
* @see java.lang.Object#equals(Object)
*/
public boolean equals(Object object) {
if (!(object instanceof NoticeNewsDetail)) {
return false;
}
NoticeNewsDetail rhs = (NoticeNewsDetail) object;
return new EqualsBuilder().appendSuper(super.equals(object)).append(
this.content, rhs.content).append(this.id, rhs.id).append(
this.author, rhs.author).append(this.title, rhs.title).append(
this.trashed, rhs.trashed).append(this.appId, rhs.appId)
.append(this.postDate, rhs.postDate).append(this.topLock,
rhs.topLock).append(this.categoryId, rhs.categoryId)
.append(this.viewCount, rhs.viewCount).append(this.updateDate,
rhs.updateDate).isEquals();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -