Package io.objectbox.annotation
package io.objectbox.annotation
Annotations to mark a class as an
@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.
-
ClassDescriptionDefines a backlink relation, which is based on another relation reversing the direction.Marks a class as an ObjectBox Entity super class.Used with
Unique
to specify the conflict resolution strategy.Supplies aconverter
to store custom Property types as a supportedConvert.dbType()
.Use with@Type
to override how a property value is stored and interpreted in the database.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.Marks a class as an ObjectBox Entity.A property type of an external system (e.g.Sets the type of a property or the type of object IDs of a ToMany in an external system (like another database).Flags as a part of theHnswIndex
configuration.Parameters to configure HNSW-based approximate nearest neighbor (ANN) search.Marks the ID property of an@Entity
.Marks a property as a companion to an @Id property.Specifies that the property should be indexed.ObjectBox offers a value and two hash index types, from which it chooses a reasonable default (seeIndexType.DEFAULT
).Allows to specify a simple name mapping for entities and properties.Enables sync for anEntity
class.Defines the property serving as the target ID of a ToOne.Transient fields are not persisted in the database.Use on a property to override how its value is stored and interpreted in the database.UIDs identify entities (and properties) uniquely in the meta object model file (objectbox-model/default.json).Enforces that the value of a property is unique among all objects in a box before an object can be put.Indicates that values of an integer property (e.g.The vector distance algorithm used by anHnswIndex
(vector search).