Hello,
I am having difficulty with nullable foreign keys where hibernate throws an error if the foreign table is not referenced, e.g.:
In my stakeholder hbm.xml:
<many-to-one name="webconfig" class="com.xxx.entity.Webconfig" not-found="ignore" cascade="all"> <column name="WEBCONFIGID" not-null="false" /> </many-to-one>
Looking at the log files I am getting the following message and am wondering if it could be related:
org.hibernate.cfg.SettingsFactory - buildSettings Check Nullability in Core (should be disabled when Bean Validation is on): enabled
I have searched everywhere but cannot find a way to disable nullability in core - HELP!
Regards, Pieter
|