Additional Mapping Annotation
Objectives¶
-
Specify a primary key generation strategy with the
@GeneratedValueannotation. -
Describe Date and Calendar values to JPA with the
@Temporalannotation. -
Use the
@Enumeratedannotation to store enum values to your database.