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;
Posted in JPA   


Copyright © 2018 CodesJava DMCA.com Protection Status SiteMap