1 parent bbb043b commit be4a669Copy full SHA for be4a669
1 file changed
objectbox-java-api/src/main/java/io/objectbox/annotation/Uid.java
@@ -15,5 +15,15 @@
15
@Retention(RetentionPolicy.CLASS)
16
@Target({ElementType.FIELD, ElementType.TYPE})
17
public @interface Uid {
18
+ /**
19
+ * The UID associated with an entity/property.
20
+ * <p>
21
+ * Special values:
22
+ * <ul>
23
+ * <li>empty (or zero): and the ObjectBox Gradle plugin will set it automatically to the current value.</li>
24
+ * <li>-1: will assign a new ID and UID forcing the property/entity to be treated as new
25
+ * (for entities: all property IDs and UIDs will be renewed too)</li>
26
+ * </ul>
27
+ */
28
long value() default 0;
29
}
0 commit comments