Tutorialspoint examples

Learn java tutorial with examples for beginners online

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   
Download tutorialspointexamples Android App
Copyright © 2018 Tutorialspoint examples DMCA.com Protection Status