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
|
@Documented
@Target
(ElementType.TYPE)
@Retention
(RetentionPolicy.RUNTIME)
public
@interface
Table {
String name();
String primaryKey();
}
@Documented
@Target
(ElementType.FIELD)
@Retention
(RetentionPolicy.RUNTIME)
public
@interface
Column {
String name();
boolean
notNull();
boolean
unique();
String check();
public
String defaultValue();
String collate();
}
@Table
(name =
""
, primaryKey =
""
)
public
class
Task {
@Column
(check =
""
, collate =
""
, defaultValue =
""
, name =
""
, notNull =
false
, unique =
false
)
private
String createTime;
@Column
(check =
""
, collate =
""
, defaultValue =
""
, name =
""
, notNull =
false
, unique =
false
)
private
String name;
}
|
我不希望Column的所有成员都显示出来。