Tag Archives: hibernate

org.hibernate.PropertyAccessException: exception setting property value with CGLIB

The error org.hibernate.PropertyAccessException: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of XYZ.setStatus(). Cause Using primitive types (long) where NULL is possible or using wrong type (i.e. String if "char" is declared in HBM file). Resolution … Continue reading

Posted in en | Tagged , , , | Comments Off on org.hibernate.PropertyAccessException: exception setting property value with CGLIB

ORA-00932: inconsistent datatypes: expected NUMBER got BINARY

I got the following error: ORA-00932: inconsistent datatypes: expected NUMBER got BINARY on line: <property name="customer" column="CustomerId" /> the fix for above error was to use many-to-many tag instead of plain <property>: <many-to-one name="customer" column="CustomerId" /> Note that class is … Continue reading

Posted in en | Tagged , , , | 5 Comments