File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
EJB and other Java EE Technologies
Hibernate: How to map int type if column is Null able
Joined: Apr 13, 2004
Sep 17, 2004 15:37:00
Have somebody ever successfully maped int property to column that could be null. I am getting an Exception whenever query returns NULL value to this field
Field is declared as int. Mapping is
<property name="admin_max" />
java.sql.SQLException: net.sf.hibernate.PropertyAccessException: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of object.dto.P_organization.setAdmin_max
Good luck for yourself.
I agree. Here's the link:
subject: Hibernate: How to map int type if column is Null able
How to read properties with no key giving
sequence generator with mysql
hbm.xml file does an update instead of an insert- Helppppp
null value to an integer attribute
Hibernate: Default Binding of database field
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014