-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Nullability check issue
PostPosted: Thu Jan 20, 2011 6:28 pm 
Newbie

Joined: Thu Jan 20, 2011 6:01 pm
Posts: 1
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.