In Oracle, I have a table "A" with field ID of type NUMBER
In Java, my Obj class has this field type as integer.
All the methods in HibernateDaoSupport classes I have used work well in Saving, Fetching, Delete ..etc
But when I use getHibernateTemplate().findByCriteria(detachedCrit eria) when doing a findall search I get a
"HibernateSystemException could not set a field value by reflection setter" it has has a full path to this integer field
So....how do I fix this issue. Is this a hibernate bug. When I change field type to Long, it works well...but I cannot do so.