00774fff116d6d0c418998999179f239a0e340eb.svn-base
2.11 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
/**
* Copyright © 2015-2018 ODM All rights reserved.
*/
package com.thinkgem.jeesite.test.entity;
import com.thinkgem.jeesite.modules.sys.entity.User;
import com.thinkgem.jeesite.modules.sys.entity.Office;
import com.thinkgem.jeesite.modules.sys.entity.Area;
import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.List;
import com.google.common.collect.Lists;
import com.thinkgem.jeesite.common.persistence.DataEntity;
/**
* 主子表生成Entity
* @author ThinkGem
* @version 2015-04-06
*/
public class TestDataMain extends DataEntity<TestDataMain> {
private static final long serialVersionUID = 1L;
private User user; // 归属用户
private Office office; // 归属部门
private Area area; // 归属区域
private String name; // 名称
private String sex; // 性别
private Date inDate; // 加入日期
private List<TestDataChild> testDataChildList = Lists.newArrayList(); // 子表列表
public TestDataMain() {
super();
}
public TestDataMain(String id){
super(id);
}
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
public Office getOffice() {
return office;
}
public void setOffice(Office office) {
this.office = office;
}
public Area getArea() {
return area;
}
public void setArea(Area area) {
this.area = area;
}
@Length(min=0, max=100, message="名称长度必须介于 0 和 100 之间")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Length(min=0, max=1, message="性别长度必须介于 0 和 1 之间")
public String getSex() {
return sex;
}
public void setSex(String sex) {
this.sex = sex;
}
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
public Date getInDate() {
return inDate;
}
public void setInDate(Date inDate) {
this.inDate = inDate;
}
public List<TestDataChild> getTestDataChildList() {
return testDataChildList;
}
public void setTestDataChildList(List<TestDataChild> testDataChildList) {
this.testDataChildList = testDataChildList;
}
}