niqueco wrote:
Be sure to put not-null="true" wherever applicable (e.g. the many-to-one relationship). Hibernate uses this value to calculate the order of SQL statements.
Thanks for your quick answer,
I had not-null="true" in Formula's many-to-one reference!
<class name="Formula" table="FORMULA" schema="TEST">
<id name="uniqueid" type="java.math.BigDecimal">
<column name="UNIQUEID" scale="0" />
<generator class="assigned" />
</id>
<many-to-one name="Model" class="Model" fetch="select">
<column name="MODEL" scale="0"
not-null="true" />
</many-to-one>
Any other ideas?
-J