JPA Temporal annotation

The @Temporal annotation is specified for Date and Calendar type persistent. It can have one of following three values DATE, TIME, and TIMESTAMP. Default is TIMESTAMP.

Example:

@Temporal(TemporalType.TIME)
java.util.Date createDtae;
Please follow and like us:
Content Protection by DMCA.com