-->
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: How to update child records for parent?
PostPosted: Mon Sep 13, 2010 3:53 pm 
Newbie

Joined: Mon Aug 30, 2010 10:29 am
Posts: 2
I have two tables in parent-children relation. On update, I have to update the relation between those meaning new children of parent may be added or one of the child record can be deleted. I know I can use update to update value of the children but in this case I have to acutally update the relationship of childen to parent. One way to do this is to delete all children and parent record and insert new parent children again, but is there better way to update the relation?

How to update child records for parent? anyone?


Top
 Profile  
 
 Post subject: Re: How to update child records for parent?
PostPosted: Mon Sep 13, 2010 5:03 pm 
Regular
Regular

Joined: Sun Feb 14, 2010 3:29 pm
Posts: 58
Location: USA
Not quiet understand what you saying. Probably better if you show some code on how you currently updating your child/parent objects.

_________________
Zemian Deng
------------
Need a Java Scheduler? Try
http://bitbucket.org/timemachine/scheduler


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.