Hi,
I'm a Hibernate novice and I need help:)
I have a table with several varchar, integer and float columns. When the integer column contain NULL, Hibernate fails to retrieve the row and throws the following exception:
----------------------------------
org.springframework.orm.hibernate3.HibernateSystemException: exception setting property value with CGLIB
org.hibernate.PropertyAccessException: exception setting property value with CGLIB
----------------------------------
The integer column is mapped to a primitive int and I have NOT specified any type for the same in the mapping file.
How can I get the row correctly fetched even if the table contains NULL instead of proper integer/float values? Is it possible?
I am using Hibernate core 3.0 with spring and Sybase.
Thanks in advance,
~Harish.
|