I've searched high & low, but can't seem to find the answer on how to accomplish this:
We have a database column of type 'bit' that accepts null values (so it allows 3 values). We have the mapping setup w/ type "boolean":
Code:
<property name="approved" type="integer">
<column name="Approved" />
</property>
The problem is that even if we explicitly set the property to null (since the class is storing the value as a java.lang.Boolean, this is allowed), Hibernate inserts a 0 (false). How can you override this functionality and allow 0, 1, and null to be inserted?
TIA.
Michael