Skip to content

Commit 9cd287c

Browse files
committed
@retention(RetentionPolicy.CLASS) for all
1 parent e0e27a3 commit 9cd287c

7 files changed

Lines changed: 7 additions & 7 deletions

File tree

objectbox-java-api/src/main/java/io/objectbox/annotation/Generated.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*
1313
* @see Keep
1414
*/
15-
@Retention(RetentionPolicy.SOURCE)
15+
@Retention(RetentionPolicy.CLASS)
1616
@Target({ElementType.FIELD, ElementType.CONSTRUCTOR, ElementType.METHOD})
1717
public @interface Generated {
1818
int hash() default -1;

objectbox-java-api/src/main/java/io/objectbox/annotation/JoinEntity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* Defines *-to-* relation with join table
1010
*/
11-
@Retention(RetentionPolicy.SOURCE)
11+
@Retention(RetentionPolicy.CLASS)
1212
@Target(ElementType.FIELD)
1313
/** TODO public */ @interface JoinEntity {
1414
/** Reference to join-entity class, which holds the source and the target properties */

objectbox-java-api/src/main/java/io/objectbox/annotation/JoinProperty.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
* @see ToMany
1111
*/
12-
@Retention(RetentionPolicy.SOURCE)
12+
@Retention(RetentionPolicy.CLASS)
1313
@Target({})
1414
/** TODO public */ @interface JoinProperty {
1515
/** Name of the property in the name entity, which matches {@link #referencedName()} */

objectbox-java-api/src/main/java/io/objectbox/annotation/Keep.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*
1919
* @see Generated
2020
*/
21-
@Retention(RetentionPolicy.SOURCE)
21+
@Retention(RetentionPolicy.CLASS)
2222
@Target({ElementType.FIELD, ElementType.CONSTRUCTOR, ElementType.METHOD, ElementType.TYPE})
2323
public @interface Keep {
2424
}

objectbox-java-api/src/main/java/io/objectbox/annotation/OrderBy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* E.g.: @OrderBy("name, age DESC") List collection;
1111
* If used as marker (@OrderBy List collection), then collection is ordered by primary key
1212
*/
13-
@Retention(RetentionPolicy.SOURCE)
13+
@Retention(RetentionPolicy.CLASS)
1414
@Target(ElementType.FIELD)
1515
/** TODO public */ @interface OrderBy {
1616
/**

objectbox-java-api/src/main/java/io/objectbox/annotation/ToMany.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* Defines *-to-N relation
1010
*/
11-
@Retention(RetentionPolicy.SOURCE)
11+
@Retention(RetentionPolicy.CLASS)
1212
@Target(ElementType.FIELD)
1313
/** TODO public */ @interface ToMany {
1414
/**

objectbox-java-api/src/main/java/io/objectbox/annotation/ToOne.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* Defines *-to-1 relation with base on existing property
1010
*/
11-
@Retention(RetentionPolicy.SOURCE)
11+
@Retention(RetentionPolicy.CLASS)
1212
@Target(ElementType.FIELD)
1313
/** TODO public */ @interface ToOne {
1414
/**

0 commit comments

Comments
 (0)