-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Trying to get a java.util.Date Object and getting TimeStamp
PostPosted: Sat Feb 26, 2011 1:12 pm 
Beginner
Beginner

Joined: Tue Aug 26, 2008 4:24 pm
Posts: 29
Hy, I have a property in a hbm file that is java.util.Date; in the Database Oracle the data type is DATE and the LENGHT is 7.
1. Everytime I recover this property from hibernate, what I recover is a TimeStamp object and not a Date object(normal?)

The real problem is when the date in the database has 23 hour like this: 2011-01-10 23:00:00 and hibernate does un update , what I see after in the database is something like this: 2011-01-10 23:00:00:-1; I mean, is setting a bad date in the database.
2. so is there a know problem when a Date has 23 hour? because it only happens when the hour of the Date is 23.

Thanks a lot


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.