a79d7d7e3234a99deae2f690b2253d43437a8e35.svn-base
1.67 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
/**
* Copyright © 2015-2018 ODM All rights reserved.
*/
package com.thinkgem.jeesite.modules.cms.entity;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;
import com.thinkgem.jeesite.common.config.Global;
import com.thinkgem.jeesite.common.persistence.DataEntity;
/**
* 文章Entity
* @author ThinkGem
* @version 2013-01-15
*/
public class ArticleData extends DataEntity<ArticleData> {
private static final long serialVersionUID = 1L;
private String id; // 编号
private String content; // 内容
private String copyfrom;// 来源
private String relation;// 相关文章
private String allowComment;// 是否允许评论
private Article article;
public ArticleData() {
super();
this.allowComment = Global.YES;
}
public ArticleData(String id){
this();
this.id = id;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
@NotBlank
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
@Length(min=0, max=255)
public String getCopyfrom() {
return copyfrom;
}
public void setCopyfrom(String copyfrom) {
this.copyfrom = copyfrom;
}
@Length(min=0, max=255)
public String getRelation() {
return relation;
}
public void setRelation(String relation) {
this.relation = relation;
}
@Length(min=1, max=1)
public String getAllowComment() {
return allowComment;
}
public void setAllowComment(String allowComment) {
this.allowComment = allowComment;
}
public Article getArticle() {
return article;
}
public void setArticle(Article article) {
this.article = article;
}
}