Package io.objectbox.annotation
Annotation 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 ElementsModifier and TypeOptional ElementDescriptionboolean
Allows IDs of new entities to be assigned manually.
-
Element Details
-
assignable
boolean assignableAllows IDs of new entities to be assigned manually. Warning: This has side effects, check the online documentation on self-assigned object IDs for details.This may allow re-use of IDs assigned elsewhere, e.g. by a server.
- Default:
- false
-