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