CodesJava

Easy learning with example program codes

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:
error
Posted in JPA   








Copyright © 2019 CodesJava DMCA.com Protection Status