Hi,
I have a Date column in a table which is read by hibernate.
Hibernate is executing a query to take all the columns for the field. This gives correct result sometimes and when it is run continously for several times it give wrong value. When I run the query directly in the DB2 control center, it returns the right values.
Heres my custom method to get the data from DB2.
String queryString = "from Blind as model where model.productlisting = ? and model.blindtype = ?";
Query queryObject = getSession().createQuery(queryString);
queryObject.setParameter(0, productlisting);
queryObject.setParameter(1, blindType);
return (Blind) queryObject.uniqueResult();