How do I insert the null value in a Boolean attribute when using Hibernate?

Posted by Pedro Morte Rolo on Stack Overflow See other posts from Stack Overflow or by Pedro Morte Rolo
Published on 2010-06-01T15:23:41Z Indexed on 2010/06/12 1:42 UTC
Read the original article Hit count: 287

Filed under:
|
|
|

I have a class with a Boolean attribute. When I instantiate and persist this class, the Boolean attribute is stored with the "false" value instead of the expectable "null". How can I set a Boolean attribute to "Null"?

© Stack Overflow or respective owner

Related posts about java

Related posts about hibernate