@Target(value=FIELD)
@Retention(value=RUNTIME)
public @interface PrimaryKey
Mark an property as the Primary Key.
It is not allowed to define a field named ID, but it is not defined as a primary key.
When the field name of the primary key is not "id", it can be marked as the primary
key with the PrimaryKey annotation.
When the field has Ignore annotation, the PrimaryKey annotation will also be ignored.
This annotation exists for compatibility with old systems,
It is strongly recommended to set an "id" column as the primary key when defining table in the new system.
- Since:
- 1.11
- Author:
- Kingstar