All Classes
-
All Classes Interface Summary Annotation Types Summary Class Description Beta APIs annotated with @Beta may change and may be even removed in a future release (but is somewhat less likely compared toExperimental).Convert SpecifiesPropertyConverterfor the field to support custom typesEntity Annotation for entities greenDAO only persist objects of classes which are marked with this annotationExperimental APIs annotated with @Experimental are likely to change and may be even removed in a future release.Generated Marks that a field, constructor or method was generated by greenDAO All the code elements that are marked with this annotation can be changed/removed during next run of generation in respect of model changes.Id Marks field is the primary key of the entity's tableIndex Can be used to: - specifies that the property should be indexed - define multi-column index throughEntity.indexes()Internal APIs annotated with @Internal must NOT be used.JoinEntity Defines *-to-* relation with join tableJoinProperty Defines name and referencedName properties for relationsKeep Specifies that the target should be kept during next run of greenDAO generation.NotNull Specifies that property is not nullOrderBy Specifies ordering of related collection ofToManyrelation E.g.: @OrderBy("name, age DESC") List collection; If used as marker (@OrderBy List collection), then collection is ordered by primary keyProperty Optional: configures the mapped column for a persistent field.PropertyConverter<P,D> To use custom types in your entity, implement this to convert db values to entity values and back.ToMany Defines *-to-N relationToOne Defines *-to-1 relation with base on existing property as foreign key or with base on automatically created backing column In case foreignKey is not specified, the following annotations can be applied together with @ToOne: -Propertyto specify backing column name -Uniqueto put the unique constraint on backing column during table creation -NotNullto put the NOT NULL constraint on backing column during table creationTransient Transient fields are not persisted in the database.Unique Marks property should have a UNIQUE constraint during table creation.