This annotation is specified in the persistence property or persistence field having the type that expresses the time (java.util.Date and java.util.Calendar). This annotation can be used along with @Basic.
However, @Version and @Temporal cannot be specified concurrently. Specify either of these annotations.
The applicable targets are method and field.
The following table lists the elements of @Temporal:
Element name | Optional/Required | Element description |
---|---|---|
value | Required | This element is specified in the TemporalType enumeration type corresponding to the database type. |
The details of attributes that are supported with Cosminexus JPA provider are as follows: