File tree Expand file tree Collapse file tree 1 file changed +55
-0
lines changed
test/org/nutz/dao/test/entity Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change
1
+ package org .nutz .dao .test .entity ;
2
+
3
+ import org .nutz .dao .entity .annotation .Column ;
4
+ import org .nutz .dao .entity .annotation .Id ;
5
+ import org .nutz .dao .entity .annotation .Name ;
6
+ import org .nutz .dao .entity .annotation .Table ;
7
+
8
+ @ Table (value = "test" , prefix = "t_" , suffix = "nut" )
9
+ public class TO7 {
10
+ @ Id
11
+ @ Column (prefix = "c_" , suffix = "_int" )
12
+ private int id ;
13
+
14
+ @ Name
15
+ @ Column (prefix = "c_" , suffix = "_str" , hump = true )
16
+ private String to7Name ;
17
+
18
+ @ Column (value = "to7_age" , prefix = "c_" , suffix = "_int" )
19
+ private int age ;
20
+
21
+ @ Column
22
+ private String addr ;
23
+
24
+ public int getId () {
25
+ return id ;
26
+ }
27
+
28
+ public void setId (int id ) {
29
+ this .id = id ;
30
+ }
31
+
32
+ public String getTo7Name () {
33
+ return to7Name ;
34
+ }
35
+
36
+ public void setTo7Name (String to7Name ) {
37
+ this .to7Name = to7Name ;
38
+ }
39
+
40
+ public int getAge () {
41
+ return age ;
42
+ }
43
+
44
+ public void setAge (int age ) {
45
+ this .age = age ;
46
+ }
47
+
48
+ public String getAddr () {
49
+ return addr ;
50
+ }
51
+
52
+ public void setAddr (String addr ) {
53
+ this .addr = addr ;
54
+ }
55
+ }
You can’t perform that action at this time.
0 commit comments