File tree Expand file tree Collapse file tree 9 files changed +14
-14
lines changed
activejdbc/src/main/java/org/javalite/activejdbc/annotations Expand file tree Collapse file tree 9 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 31
31
@ Retention (RetentionPolicy .RUNTIME )
32
32
@ Target (ElementType .TYPE )
33
33
public @interface BelongsTo {
34
- public Class <? extends Model > parent ();
35
- public String foreignKeyName ();
34
+ Class <? extends Model > parent ();
35
+ String foreignKeyName ();
36
36
}
Original file line number Diff line number Diff line change 11
11
@ Retention (RetentionPolicy .RUNTIME )
12
12
@ Target (ElementType .TYPE )
13
13
public @interface BelongsToParents {
14
- public BelongsTo [] value ();
14
+ BelongsTo [] value ();
15
15
}
16
16
Original file line number Diff line number Diff line change 36
36
* List of parent classes.
37
37
* @return list of parent classes.
38
38
*/
39
- public abstract Class <? extends Model >[] parents ();
39
+ Class <? extends Model >[] parents ();
40
40
41
41
/**
42
42
* List of type labels corresponding to parent classes. This is a value to be stored in the
43
43
* "parent_type" column of the child record. Use this to override default behavior (parent full class name).
44
44
*
45
45
* @return list of type labels corresponding to parent classes.
46
46
*/
47
- public String [] typeLabels () default {};
47
+ String [] typeLabels () default {};
48
48
}
Original file line number Diff line number Diff line change 28
28
@ Retention (RetentionPolicy .RUNTIME )
29
29
@ Target (ElementType .TYPE )
30
30
public @interface DbName {
31
- public String value ();
31
+ String value ();
32
32
}
Original file line number Diff line number Diff line change 28
28
@ Retention (RetentionPolicy .RUNTIME )
29
29
@ Target (ElementType .TYPE )
30
30
public @interface IdGenerator {
31
- public String value ();
31
+ String value ();
32
32
}
Original file line number Diff line number Diff line change 29
29
@ Retention (RetentionPolicy .RUNTIME )
30
30
@ Target (ElementType .TYPE )
31
31
public @interface IdName {
32
- public String value ();
32
+ String value ();
33
33
}
Original file line number Diff line number Diff line change 37
37
/**
38
38
* This is a type of a model that is the "other" end of the relationship.
39
39
*/
40
- public Class <? extends Model > other ();
40
+ Class <? extends Model > other ();
41
41
42
42
/**
43
43
* Name of a table used for joining records from other tables.
44
44
*/
45
- public String join () ;
45
+ String join () ;
46
46
47
47
/**
48
48
* Foreign key name of a source table in the join. A "source" table is a table that backs the model
49
49
* on which this annotation is used.
50
50
*/
51
- public String sourceFKName ();
51
+ String sourceFKName ();
52
52
53
53
/**
54
54
* Foreign key name of a target table in the join table. A "target" table is a table that backs the "other" model.
55
55
*/
56
- public String targetFKName ();
56
+ String targetFKName ();
57
57
}
58
58
Original file line number Diff line number Diff line change 29
29
@ Retention (RetentionPolicy .RUNTIME )
30
30
@ Target (ElementType .TYPE )
31
31
public @interface Table {
32
- public String value ();
32
+ String value ();
33
33
34
34
}
Original file line number Diff line number Diff line change 11
11
@ Retention (RetentionPolicy .RUNTIME )
12
12
@ Target (ElementType .TYPE )
13
13
public @interface VersionColumn {
14
- public String value ();
14
+ String value ();
15
15
}
You can’t perform that action at this time.
0 commit comments