Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
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
null value to an integer attribute
hbm.xml file does an update instead of an insert- Helppppp
Hibernate: Default Binding of database field
How to read properties with no key giving
sequence generator with mysql
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013