-->
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: Delete exiting child table records and insert new records ?
PostPosted: Fri May 27, 2005 6:32 am 
Newbie

Joined: Mon May 16, 2005 4:40 am
Posts: 5
Hi,
I have parent - child tables with one-to-many relationship.
When i save the parent with new child records, i want only the new records to saved into the child table. i.e.
i want the corresponding child table's old records to be deleted
and the new record to be inserted.

How do i do this ?

Thanks in advance
-godhs


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 27, 2005 7:33 am 
Expert
Expert

Joined: Thu May 26, 2005 9:19 am
Posts: 262
Location: Oak Creek, WI
Hi

If you do this relationship is deafeated.

Instead you can delete the parent record so that you can insert a new parent record with child record.


regards
RamnathN


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.