File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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..
I agree. Here's the link:
subject: Date variable in JPA
Why Timestamp isn't allowed as a primary key?
Beta for Sun Certified EJB Developer Java EE 6 Exam
how to write a JPA named query to retrive records based on day
hibernate query to retrive records based on a day from date/time field
JPA 2.0 - good and up-to-date tutorial
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015