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

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Hibernate: How to map int type if column is Null able