Package io.objectbox.annotation
Annotation Type Id
-
@Retention(CLASS) @Target(FIELD) public @interface Id
Marks the ID property of an@Entity
. The property must be of type long (or Long in Kotlin) and have not-private visibility (or a not-private getter and setter method).ID properties are unique and indexed by default.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
assignable
Allows IDs of new entities to be assigned manually.
-