A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Object Relational Mapping
Date variable in JPA
Joined: Apr 04, 2012
Sep 19, 2012 18:48:49
I am practicing JPA howerver.... private Date updatedTime; is not allowed.. Any package to be added?
Im using openjpa.
Joined: Aug 11, 2012
Sep 20, 2012 02:23:59
You need to add @Temporal annotation to the field..
It is sorta covered in the
JavaRanch Style Guide
subject: Date variable in JPA
Beta for Sun Certified EJB Developer Java EE 6 Exam
how to write a JPA named query to retrive records based on day
Why Timestamp isn't allowed as a primary key?
JPA 2.0 - good and up-to-date tutorial
hibernate query to retrive records based on a day from date/time field
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013