📄 noticecomment.java
字号:
package com.szhelper.lotteryWeb.model;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
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.NoticeTypeUtil;
public class NoticeComment implements Serializable {
private Integer id = null;
private Integer appId = 0;
/**
* indicate that weather the record is deleted status or not 0 ��not 1 : yes
*/
private Integer trashed = 0;
/**
* ��Ѷ��������
*/
private String noticeTypeDescUndo;
/**
* ��Ѷ����
*/
private Integer noticeType;
/**
* ��Ѷ���
*/
private Integer noticeId;
/**
* ����
*/
private String title;
/**
* ����
*/
private String content;
/**
* ����
*/
private String author = "Admin";
/**
* ��������
*/
private Date submitDate;
private Date updateDate;
public Integer getNoticeType() {
return noticeType;
}
public void setNoticeType(Integer noticeType) {
noticeTypeDescUndo = NoticeTypeUtil.getNoticeTypeDesc(noticeType);
this.noticeType = noticeType;
}
public Integer getNoticeId() {
noticeTypeDescUndo = NoticeTypeUtil.getNoticeTypeDesc(noticeType);
return noticeId;
}
public void setNoticeId(Integer noticeId) {
this.noticeId = noticeId;
}
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 String getAuthor() {
return author;
}
public void setAuthor(String author) {
this.author = author;
}
public Date getSubmitDate() {
return submitDate;
}
public void setSubmitDate(Date submitDate) {
this.submitDate = submitDate;
}
/**
* @see java.lang.Object#toString()
*/
public String toString() {
return new ToStringBuilder(this).append("id", this.id).append(
"noticeType", this.noticeType).append("content", this.content)
.append("title", this.title).append("submitDate",
this.submitDate).append("author", this.author).append(
"noticeId", this.noticeId).toString();
}
/**
* @see java.lang.Object#hashCode()
*/
public int hashCode() {
return new HashCodeBuilder(1464554967, 1206277733).appendSuper(
super.hashCode()).append(this.content).append(this.author)
.append(this.title).append(this.noticeId).append(
this.submitDate).append(this.noticeType).toHashCode();
}
/**
* @see java.lang.Object#equals(Object)
*/
public boolean equals(Object object) {
if (!(object instanceof NoticeComment)) {
return false;
}
NoticeComment rhs = (NoticeComment) object;
return new EqualsBuilder().appendSuper(super.equals(object)).append(
this.content, rhs.content).append(this.author, rhs.author)
.append(this.title, rhs.title).append(this.noticeId,
rhs.noticeId).append(this.submitDate, rhs.submitDate)
.append(this.noticeType, rhs.noticeType).isEquals();
}
public Integer getId() {
return id;
}
public Integer getAppId() {
return 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;
}
public void setId(Integer id) {
this.id = id;
}
public void setAppId(Integer appId) {
this.appId = appId;
}
public String getNoticeTypeDescUndo() {
return noticeTypeDescUndo;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -