-->
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: 1-N mapping with two tables
PostPosted: Mon May 10, 2010 1:04 am 
Newbie

Joined: Mon May 10, 2010 12:55 am
Posts: 1
Hi

I have Two parent tables and 1 child table mapped with 1-N

Ex:
Table A Table B
SK_ID Name SK_ID Name


where Table C is child for the both A and B

Table C

Sk_ID Address BK_PARENT_SK_ID





where BK_PARENT_SK_ID is the key that is from the both the table A,B when i map with set in the hbm.xml both in A and B like

<set name="address" cascade="all" lazy="true">
<key column="BK_PARENT_SK_ID" not-null="true"/>
<one-to-many class="C" />
</set>

am getting an error stating insert="false",update="false"...





Looking for suggestion



chandra sekhar


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.