4598b322139f9bbd1a123d199b8edbc487785c65.svn-base
1.09 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
/**
* Copyright © 2015-2018 ODM All rights reserved.
*/
package com.thinkgem.jeesite.test.entity;
import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.common.persistence.DataEntity;
/**
* 主子表生成Entity
* @author ThinkGem
* @version 2015-04-06
*/
public class TestDataChild extends DataEntity<TestDataChild> {
private static final long serialVersionUID = 1L;
private TestDataMain testDataMain; // 业务主表 父类
private String name; // 名称
public TestDataChild() {
super();
}
public TestDataChild(String id){
super(id);
}
public TestDataChild(TestDataMain testDataMain){
this.testDataMain = testDataMain;
}
@Length(min=0, max=64, message="业务主表长度必须介于 0 和 64 之间")
public TestDataMain getTestDataMain() {
return testDataMain;
}
public void setTestDataMain(TestDataMain testDataMain) {
this.testDataMain = testDataMain;
}
@Length(min=0, max=100, message="名称长度必须介于 0 和 100 之间")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}