Annotation Type Column
Renames or constrains an
@Entity field's column. Optional -- when absent,
the column name defaults to the field name and the type is inferred from
the Java field type (String -> TEXT, int/long -> INTEGER,
float/double -> REAL, boolean -> INTEGER, byte[] -> BLOB,
java.util.Date -> INTEGER).-
Optional Element Summary
Optional Elements
-
Element Details
-
name
-
nullable
boolean nullableWhen false the column gets aNOT NULLconstraint at table-create time.- Default:
true
-
type
String typeOptional explicit SQL type. Use the SQLite type names (TEXT,INTEGER,REAL,BLOB,NUMERIC). When blank the processor infers the type from the field's Java type.- Default:
""
-