liuxiaolong
2019-05-09 0d1d88cdb668e75ea8609417ac18ae19947e9525
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
/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.iim.entity;
 
import org.hibernate.validator.constraints.Length;
import java.util.List;
import com.google.common.collect.Lists;
import com.jeeplus.common.persistence.DataEntity;
 
 
/**
 * 发件箱Entity
 * @author jeeplus
 * @version 2015-11-15
 */
public class Mail extends DataEntity<Mail> {
    
    private static final long serialVersionUID = 1L;
    private String title;        // 标题
    private String overview;        // 内容概要
    private String content;        // 内容
    private List<MailBox> mailBoxList = Lists.newArrayList();        // 子表列表
    private List<MailCompose> mailComposeList = Lists.newArrayList();        // 子表列表
    
    public Mail() {
        super();
    }
 
    public Mail(String id){
        super(id);
    }
 
    @Length(min=0, max=128, message="标题长度必须介于 0 和 128 之间")
    public String getTitle() {
        return title;
    }
 
    public void setTitle(String title) {
        this.title = title;
    }
    
    @Length(min=0, max=128, message="内容概要长度必须介于 0 和 128 之间")
    public String getOverview() {
        return overview;
    }
 
    public void setOverview(String overview) {
        this.overview = overview;
    }
    
    @Length(min=0, max=5096, message="内容长度必须介于 0 和 5096 之间")
    public String getContent() {
        return content;
    }
 
    public void setContent(String content) {
        this.content = content;
    }
    
    public List<MailBox> getMailBoxList() {
        return mailBoxList;
    }
 
    public void setMailBoxList(List<MailBox> mailBoxList) {
        this.mailBoxList = mailBoxList;
    }
    public List<MailCompose> getMailComposeList() {
        return mailComposeList;
    }
 
    public void setMailComposeList(List<MailCompose> mailComposeList) {
        this.mailComposeList = mailComposeList;
    }
}