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


Win a copy of Spring in Action this week in the Spring 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

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Hibernate: How to map int type if column is Null able