Ok I have been looking into this a lot more and its only certain fields that wont save.
In our structure we have a domainObject which has a details object which has a address object.
Fields in the domain object that sare strings save, this is also true for the deails, but in the adress about they do not save. Here are the mappings.
Code:
<class
name="eg.Domain"
dynamic-update="true"
dynamic-insert="false"
select-before-update="false"
>
....
<many-to-one
name="pensionSchemeDetails"
class="eg.Details"
cascade="save-update"
outer-join="auto"
update="true"
insert="true"
access="property"
column="pensionSchemeDetails"
/>
....
</class>
Details
Code:
<class
name="eg.Details"
dynamic-update="false"
dynamic-insert="false"
select-before-update="false"
>
...
<many-to-one
name="address"
class="eg.PostalAddress"
cascade="save-update"
outer-join="auto"
update="true"
insert="true"
access="property"
column="address"
/>
</class>
Address with one of the example lines that is not saving
Code:
<class
name="eg.PostalAddress"
dynamic-update="false"
dynamic-insert="false"
select-before-update="false"
>
<property
name="addressLine1"
type="eg.ErroredStringType"
update="true"
insert="true"
access="property"
>
<column
name="addressLine1"
length="35"
/>
<column
name="addressLine1Error"
/>
</property>