1
2
3
4
5 package gboat2.base.dao.impl;
6
7 import gboat2.base.core.annotation.Field;
8 import gboat2.base.core.annotation.Relation;
9 import gboat2.base.core.annotation.Relations;
10
11
12
13
14
15
16 @Relations(base = TestPoA.class,
17 value = { @Relation(refer = TestPoB.class, baseColumn = {"id"}, referColumn = {"po1Id"})})
18 public class TestVO {
19 @Field(clazz = TestPoB.class, column = "po1Id")
20 private String id;
21 @Field(clazz = TestPoA.class)
22 private String field01;
23 @Field(clazz = TestPoB.class, column = "field11")
24 private String field11;
25
26 public TestVO() {
27
28 }
29
30 public String getId() {
31 return id;
32 }
33
34 public void setId(String id) {
35 this.id = id;
36 }
37
38 public TestVO(String field01, String field11) {
39 this.field01 = field01;
40 this.field11 = field11;
41 }
42
43 public String getField01() {
44 return field01;
45 }
46
47 public void setField01(String field01) {
48 this.field01 = field01;
49 }
50
51 public String getField11() {
52 return field11;
53 }
54
55 public void setField11(String field11) {
56 this.field11 = field11;
57 }
58 }