jQuery in Action, 3rd edition
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


Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
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

Stan Sokolov
Ranch Hand

Joined: Apr 13, 2004
Posts: 120

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
 
It's not a secret anymore!