• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Stan Sokolov
Ranch Hand
Posts: 120
Hibernate IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic