-->
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.  [ 2 posts ] 
Author Message
 Post subject: Help Required Master Detail Scenario!!!!
PostPosted: Thu Nov 16, 2006 2:59 am 
Beginner
Beginner

Joined: Wed Aug 30, 2006 2:06 am
Posts: 24
Hi,

I have a scenario like this.

I have a master table called A and two child tables C1 and C2.
At a particular instance i want to insert records in my master table A and the child table C1. At another instance i want to insert records in my master table A and the other child table C2.

How should i define my relationship in the entity file and the xml file.
Any help in this regard is appreciated.

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 16, 2006 10:23 am 
Senior
Senior

Joined: Sat Mar 25, 2006 9:16 am
Posts: 150
Two bags in the XML file, two collections in your cs file


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

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.