-->
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: SaveOrUpdateCopy()
PostPosted: Wed Nov 07, 2007 2:33 pm 
Newbie

Joined: Tue Feb 27, 2007 6:40 am
Posts: 2
I have 2 tables say for example:-

TableA (TableA_ID, Name)
TableB (TableB_ID, TableA_ID, Name)

I have implemented this method which copies TableA and it's related records from TableB.

However, part of this process seems to involve updating the newly inserted records in TableB with the newly created PK from TableA.

But the update is trying to update TableA's FK with a null.

Has anybody experienced this problem before?


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.