@Retention(value=RUNTIME)
@Target(value=FIELD)
public @interface AutoIncrement
Marks a field within a entity class to be an auto incremented value.
At the moment only a @PrimaryKey annotated field can be marked with @AutoIncrement.
The database to automatically increments the primary key with each new saved entity.
Do not set the value of an @PrimaryKey annotated field within your code.
- Author:
- Falk Appel, Alexander Frank