-->
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: Two parents and a single child relationship
PostPosted: Sat Jul 11, 2009 2:09 am 
Newbie

Joined: Thu Nov 20, 2008 6:41 am
Posts: 3
Hi,

I need to know whether the below scenario is possible?

Table A
A_ID PK
A_NAME

Table B
B_ID PK
B_NAME

Table C
C_ID
A_ID
B_ID

Now when I try to insert into these three tables can I do it in a single session and transaction or in order to insert in Table C, Do I need to fetch the ID from both Table A and B.

Any suggestions would be really helpful

Thanks and Regards,
Madhava ram


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.