127fd7abb0a98c92dbbc77651576e15cc3b49455.svn-base
2.87 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
/**
* Copyright © 2015-2018 ODM All rights reserved.
*/
package com.thinkgem.jeesite.modules.test.entity;
import java.util.Date;
import org.hibernate.validator.constraints.Length;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.common.supcan.annotation.treelist.SupTreeList;
import com.thinkgem.jeesite.common.supcan.annotation.treelist.cols.SupCol;
import com.thinkgem.jeesite.common.supcan.annotation.treelist.cols.SupGroup;
import com.thinkgem.jeesite.modules.sys.entity.Office;
/**
* 测试Entity
* @author ThinkGem
* @version 2013-10-17
*/
@SupTreeList(
groups={
@SupGroup(id="date", name="日期", sort=50),
@SupGroup(id="date2", name="日期2", sort=60, parentId="date"),
@SupGroup(id="date3", name="日期3", sort=70, parentId="date")
})
public class Test extends DataEntity<Test> {
private static final long serialVersionUID = 1L;
private Office office; // 归属部门
private String loginName;// 登录名
private String name; // 名称
public Test() {
super();
}
public Test(String id){
super(id);
}
@SupCol(text="归属公司", sort = 10, minWidth="125px")
@JsonSerialize(using = ToStringSerializer.class)
public Office getOffice() {
return office;
}
public void setOffice(Office office) {
this.office = office;
}
@SupCol(text="登录名", sort = 20, minWidth="125px")
public String getLoginName() {
return loginName;
}
public void setLoginName(String loginName) {
this.loginName = loginName;
}
@SupCol(text="姓名", sort = 30, minWidth="125px")
@Length(min=1, max=200)
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@SupCol(text="创建时间", sort = 1, groupId="date", width="125px")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
public Date getCreateDate() {
return createDate;
}
@SupCol(text="修改时间", sort = 2, groupId="date", width="125px")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
public Date getUpdateDate() {
return updateDate;
}
@SupCol(text="创建时间2", sort = 2, groupId="date2", width="125px")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
public Date getCreateDate2() {
return createDate;
}
@SupCol(text="修改时间2", sort = 1, groupId="date2", width="125px")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
public Date getUpdateDate2() {
return updateDate;
}
@SupCol(text="创建时间3", sort = 200, groupId="date3", width="125px")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
public Date getCreateDate3() {
return createDate;
}
@SupCol(text="修改时间3", sort = 1, groupId="date3", width="125px")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
public Date getUpdateDate3() {
return updateDate;
}
}