File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate: How to map int type if column is Null able