aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Hibernate: How to map int type if column is Null able Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Hibernate: How to map int type if column is Null able" Watch "Hibernate: How to map int type if column is Null able" New topic
Author

Hibernate: How to map int type if column is Null able

Stas Sokolov
Ranch Hand

Joined: Apr 13, 2004
Posts: 117

Guys,
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



Exception is


Good luck for yourself.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate: How to map int type if column is Null able
 
Similar Threads
hbm.xml file does an update instead of an insert- Helppppp
How to read properties with no key giving
Hibernate: Default Binding of database field
sequence generator with mysql
null value to an integer attribute