-->
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: many-to-one not-found attribute not working
PostPosted: Thu Feb 15, 2007 3:39 pm 
Newbie

Joined: Thu Feb 15, 2007 3:32 pm
Posts: 10
Hibernate version:
3.2.1.ga
Mapping documents:


<many-to-one name="stateDistrictLookup" class="StateDistrictLookup" insert="false" update="false" not-found="exception">
<column name="STATE_DISTRICT_CODE" length="2"/>
</many-to-one>


Hello - I am purposely setting an incorrect value on my lookup object hoping to get an exception since the foreign key does not exist. However - the parent row is still inserted and a null is inserted where the lookup code is.

thoughts?


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.