@Entity,
to specify the @Id Property,
to create an @Index or
a @Transient Property.See: Description
| Enum | Description |
|---|---|
| IndexType |
ObjectBox offers a value and two hash index types, from which it chooses a reasonable default (see
IndexType.DEFAULT). |
| Annotation Type | Description |
|---|---|
| Backlink |
Defines a backlink relation, which is based on another relation reversing the direction.
|
| BaseEntity |
Marks a class as an ObjectBox Entity super class.
|
| Convert |
Supplies a
converter to store custom Property types as a supported Convert.dbType(). |
| DefaultValue |
Defines the Java code of the default value to use for a property, when getting an existing entity and the database
value for the property is null.
|
| Entity |
Marks a class as an ObjectBox Entity.
|
| Id |
Marks the ID property of an
@Entity. |
| Index |
Specifies that the property should be indexed.
|
| NameInDb |
Allows to specify a simple name mapping for entities and properties.
|
| Sync |
Enables sync for an
Entity class. |
| TargetIdProperty |
Defines the property serving as the target ID of a ToOne.
|
| Transient |
Transient fields are not persisted in the database.
|
| Uid |
UIDs identify entities (and properties) uniquely in the meta object model file (objectbox-model/default.json).
|
| Unique |
Enforces that the value of a property is unique among all objects in a box before an object can be put.
|
@Entity,
to specify the @Id Property,
to create an @Index or
a @Transient Property.
For more details look at the documentation of individual classes and docs.objectbox.io/entity-annotations.