GeneratedValue
| Modifier and Type | Field and Description |
|---|---|
| public static final GenerationType | AUTO
Indicates that the persistence provider should pick an appropriate strategy for the particular database. |
| public static final GenerationType | IDENTITY
Indicates that the persistence provider must assign primary keys for the entity using a database identity column. |
| public static final GenerationType | SEQUENCE
Indicates that the persistence provider must assign primary keys for the entity using a database sequence. |
| public static final GenerationType | TABLE
Indicates that the persistence provider must assign primary keys for the entity using an underlying database table to ensure uniqueness. |
| public static final GenerationType | UUID
Indicates that the persistence provider must assign primary keys for the entity by generating an RFC 4122 Universally Unique IDentifier. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static GenerationType | |
| public static GenerationType[] |
| AUTO | back to summary |
|---|---|
| public static final GenerationType AUTO Indicates that the persistence provider should pick an appropriate strategy for the particular database.
The | |
| IDENTITY | back to summary |
|---|---|
| public static final GenerationType IDENTITY Indicates that the persistence provider must assign primary keys for the entity using a database identity column. May be used to generate primary keys of type
| |
| SEQUENCE | back to summary |
|---|---|
| public static final GenerationType SEQUENCE Indicates that the persistence provider must assign primary keys for the entity using a database sequence. May be used to generate primary keys of type
| |
| TABLE | back to summary |
|---|---|
| public static final GenerationType TABLE Indicates that the persistence provider must assign primary keys for the entity using an underlying database table to ensure uniqueness. May be used to generate primary keys of type
| |
| UUID | back to summary |
|---|---|
| public static final GenerationType UUID Indicates that the persistence provider must assign primary keys for the entity by generating an RFC 4122 Universally Unique IDentifier. May be used to generate primary keys of type
| |
| GenerationType | back to summary |
|---|---|
| private GenerationType() | |
| valueOf | back to summary |
|---|---|
| public static GenerationType valueOf(String name) | |
| values | back to summary |
|---|---|
| public static GenerationType[] values() | |