Thank you for your reaction. I am testing it now but a quick reaction i can give already. yes_no will not work for java.lang.Boolean.
For example this mapping:
Code:
<property name="garden" column="garden_ind" type="yes_no" not-null="false">
<meta attribute="field-description">Does the Listing have a garden? If you don't know, set this (or leave it) null.</meta>
</property>
The code generator will generate a boolean member, and not java.lang.Boolean. So i cannot use yes_no there.
I am trying yes_no for boolean right now (so where not-null="true"...) - i will keep you informed if this works, but i am still looking for a mapping solution for java.lang.Boolean!
You asked for some more details. What i want is the database field garden_ind to have the values: 'Y', 'N' and null. I want Hibernate to translate it to their appropriate Boolean value. Retrieving is not a problem, but when I insert a new record, garden_ind will be set to 1, 0, or null and thereby introduce a problem with the legacy software.