This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Date variable in JPA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Date variable in JPA" Watch "Date variable in JPA" New topic
Author

Date variable in JPA

victor chiong
Ranch Hand

Joined: Apr 04, 2012
Posts: 73
Hi Guys

I am practicing JPA howerver.... private Date updatedTime; is not allowed.. Any package to be added?

Im using openjpa.

Thanks,
Vic
R. Jain
Ranch Hand

Joined: Aug 11, 2012
Posts: 375
    
    1

Hello Victor,

You need to add @Temporal annotation to the field..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Date variable in JPA