1
2
3
4
5 package gboat2.base.core.annotation;
6
7 import java.lang.annotation.ElementType;
8 import java.lang.annotation.Retention;
9 import java.lang.annotation.RetentionPolicy;
10 import java.lang.annotation.Target;
11
12
13
14
15
16
17
18
19
20 @Retention(RetentionPolicy.RUNTIME)
21 @Target( { ElementType.TYPE, ElementType.ANNOTATION_TYPE })
22 public @interface Relation {
23
24
25 public Class<?> base() default DefaultBase.class;
26
27
28 public String[] baseColumn();
29
30
31 public Class<?> refer();
32
33
34 public String[] referColumn();
35
36
37 public RelationType type() default RelationType.INNER;
38
39
40 public String on() default "";
41
42
43
44
45
46
47
48
49 class DefaultBase {
50 }
51 }