-->
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.  [ 2 posts ] 
Author Message
 Post subject: NO timezone
PostPosted: Fri Aug 13, 2004 3:41 am 
Newbie

Joined: Sat Jan 31, 2004 3:56 pm
Posts: 8
Hibernate version:2.1

database:informix

Hi,

We are trying to compare 2 dates where one has a timezone GMT+1 and the other (the one selected from the database) seems to have no timezone. even when the date is the same it is obvious that the comparison is false due to the timezone.

we map date properties in de mapping files as of type=date and in the informix datebase the field is of type DATETIME. does anyone have a limited work solution for this problem. writing our own dateComporator would involve a lot of refactoring we are wondering if it is possible to have the hibernate date having set the same timezone and how to do this.

_________________
Thank you in advance
Yvan


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 14, 2004 2:39 am 
Expert
Expert

Joined: Thu Jan 29, 2004 2:31 am
Posts: 362
Location: Switzerland, Bern
Maybe a UserType helps. If you somehow know the correct time zone in the nullSafeGet method you could add it and return whatever date type you'd like to have.

HTH
Ernst


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

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.