Package io.objectbox.annotation
Annotation Type Convert
-
@Retention(CLASS) @Target(FIELD) public @interface Convert
Supplies aconverter
to store custom Property types as a supporteddbType()
. See the Custom Types documentation for details.
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.Class<? extends PropertyConverter>
converter
The converter class that ObjectBox should use.java.lang.Class
dbType
The Property type the Java field value is converted to/from.
-
-
-
Element Detail
-
converter
java.lang.Class<? extends PropertyConverter> converter
The converter class that ObjectBox should use. SeePropertyConverter
for implementation guidelines.
-
-
-
dbType
java.lang.Class dbType
The Property type the Java field value is converted to/from. See the Custom Types documentation for a list of supported types.
-
-