Annotation Type Entity
-
@Target(TYPE) @Retention(RUNTIME) public @interface Entity
This annotation indicates that this is an entity stored in the database. the entity name must be provided and it must be the same as its name in the database(name) primaryKey must be provided whether it is a one column or more(primaryKey), the last configuration is to specify whether the primary key of the table is auto incremented by the database upon insertion this configuration is optional and false by default(isAutoIncrement)
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.String
name
java.lang.String[]
primaryKey
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
isAutoIncrement
-