Annotation for entities greenDAO only persist objects of classes which are marked with this annotation
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.
Marks field is the primary key of the entity's table
Can be used to: - specifies that the property should be indexed - define multi-column index through
Defines *-to-* relation with join table
Defines name and referencedName properties for relations
Specifies that the target should be kept during next run of greenDAO generation.
Specifies that property is not null You can also use any another NotNull or NonNull annotation (from any library or your own), they are equal to using this
Specifies ordering of related collection of
Optional: configures the mapped column for a persistent field.
Defines *-to-N relation
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: -
Transient fields are not persisted in the database.
Marks property should have a UNIQUE constraint during table creation.
Available under the Apache License, Version 2.0 - Copyright © 2011-2016 greenrobot.org. All Rights Reserved.