GeezerVison is showing github.com — RetentionPolicy.CLASS for a couple more annotations · haojiexuexi/objectbox-java@7eb48c5
File tree
Expand file treeCollapse file tree
Open diff view settings
objectbox-java-api/src/main/java/io/objectbox/annotation
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: objectbox-java-api/src/main/java/io/objectbox/annotation/Convert.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
10 | 10 | /** |
11 | 11 | * Specifies {@link PropertyConverter} for the field to support custom types |
12 | 12 | */ |
13 | | -@Retention(RetentionPolicy.SOURCE) |
| 13 | +@Retention(RetentionPolicy.CLASS) |
14 | 14 | @Target(ElementType.FIELD) |
15 | 15 | public @interface Convert { |
16 | 16 | /** Converter class */ |
|
Collapse file
Copy file name to clipboardExpand all lines: objectbox-java-api/src/main/java/io/objectbox/annotation/Id.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
8 | 8 | /** |
9 | 9 | * Marks field is the primary key of the entity's table |
10 | 10 | */ |
11 | | -@Retention(RetentionPolicy.SOURCE) |
| 11 | +@Retention(RetentionPolicy.CLASS) |
12 | 12 | @Target(ElementType.FIELD) |
13 | 13 | public @interface Id { |
14 | 14 | /** |
|
Collapse file
Copy file name to clipboardExpand all lines: objectbox-java-api/src/main/java/io/objectbox/annotation/Index.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
8 | 8 | /** |
9 | 9 | * Specifies that the property should be indexed, which is highly recommended if you do queries using this property. |
10 | 10 | */ |
11 | | -@Retention(RetentionPolicy.SOURCE) |
| 11 | +@Retention(RetentionPolicy.CLASS) |
12 | 12 | @Target(ElementType.FIELD) |
13 | 13 | public @interface Index { |
14 | 14 | // /** |
|
Collapse file
Copy file name to clipboardExpand all lines: objectbox-java-api/src/main/java/io/objectbox/annotation/NotNull.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
12 | 12 | * they are equal to using this |
13 | 13 | * </p> |
14 | 14 | */ |
15 | | -@Retention(RetentionPolicy.SOURCE) |
| 15 | +@Retention(RetentionPolicy.CLASS) |
16 | 16 | @Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER}) |
17 | 17 | /** TODO public */ @interface NotNull { |
18 | 18 | } |
Collapse file
Copy file name to clipboardExpand all lines: objectbox-java-api/src/main/java/io/objectbox/annotation/Property.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
9 | 9 | * Optional: configures the mapped column for a persistent field. |
10 | 10 | * This annotation is also applicable with @ToOne without additional foreign key property |
11 | 11 | */ |
12 | | -@Retention(RetentionPolicy.SOURCE) |
| 12 | +@Retention(RetentionPolicy.CLASS) |
13 | 13 | @Target(ElementType.FIELD) |
14 | 14 | public @interface Property { |
15 | 15 | /** |
|
Collapse file
Copy file name to clipboardExpand all lines: objectbox-java-api/src/main/java/io/objectbox/annotation/Transient.java +3-2Lines changed: 3 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
4 | 4 | import java.lang.annotation.Retention; |
5 | 5 | import java.lang.annotation.Target; |
6 | 6 |
|
7 | | -import static java.lang.annotation.RetentionPolicy.SOURCE; |
| 7 | + |
| 8 | +import static java.lang.annotation.RetentionPolicy.CLASS; |
8 | 9 |
|
9 | 10 | /** |
10 | 11 | * Transient fields are not persisted in the database. |
11 | 12 | */ |
12 | | -@Retention(SOURCE) |
| 13 | +@Retention(CLASS) |
13 | 14 | @Target(ElementType.FIELD) |
14 | 15 | public @interface Transient { |
15 | 16 | } |