-->
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: Date Inconsistency
PostPosted: Sat May 12, 2007 1:45 am 
Newbie

Joined: Sat Dec 02, 2006 4:23 am
Posts: 17
Hi all,
Iam getting inconsistent date while fetching from oracle DB.It fetches the right date sometimes or one day lesser than the actual date.Iam breaking my head for a long time.Please any body help me if you find any mistakes in the code snippet:

hbm file part:
Code:
<property name="hiredate" type="java.sql.Date" column="HIREDATE"  />


Bean class:
Code:
private java.sql.Date hiredate;


JSP:
Code:
newResult = HibernateUtil.getSessionFactory().getCurrentSession()
                  .createCriteria(EmployeeSearch.class) 
                  .list();


Iam using Oracle DB in which my column's datatype is DATE .

Really iam very much annoyed of this problem.
Any internal conversion problem or any versioning problem?Expecting a better solution.

Regards,
Jasmine


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.