Comment.java
2.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
/**
* Copyright © 2015-2018 ODM All rights reserved.
*/
package com.thinkgem.jeesite.modules.cms.entity;
import java.util.Date;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.modules.sys.entity.User;
/**
* 评论Entity
* @author ThinkGem
* @version 2013-05-15
*/
public class Comment extends DataEntity<Comment> {
private static final long serialVersionUID = 1L;
private Category category;// 分类编号
private String contentId; // 归属分类内容的编号(Article.id、Photo.id、Download.id)
private String title; // 归属分类内容的标题(Article.title、Photo.title、Download.title)
private String content; // 评论内容
private String name; // 评论姓名
private String ip; // 评论IP
private Date createDate;// 评论时间
private User auditUser; // 审核人
private Date auditDate; // 审核时间
private String delFlag; // 删除标记删除标记(0:正常;1:删除;2:审核)
public Comment() {
super();
this.delFlag = DEL_FLAG_AUDIT;
}
public Comment(String id){
this();
this.id = id;
}
public Comment(Category category){
this();
this.category = category;
}
@NotNull
public Category getCategory() {
return category;
}
public void setCategory(Category category) {
this.category = category;
}
@NotNull
public String getContentId() {
return contentId;
}
public void setContentId(String contentId) {
this.contentId = contentId;
}
@Length(min=1, max=255)
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
@Length(min=1, max=255)
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
@Length(min=1, max=100)
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public User getAuditUser() {
return auditUser;
}
public void setAuditUser(User auditUser) {
this.auditUser = auditUser;
}
public Date getAuditDate() {
return auditDate;
}
public void setAuditDate(Date auditDate) {
this.auditDate = auditDate;
}
public String getIp() {
return ip;
}
public void setIp(String ip) {
this.ip = ip;
}
@NotNull
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
@Length(min=1, max=1)
public String getDelFlag() {
return delFlag;
}
public void setDelFlag(String delFlag) {
this.delFlag = delFlag;
}
}