-->
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.  [ 4 posts ] 
Author Message
 Post subject: How do I copy children of an object to another similar obj
PostPosted: Fri Dec 03, 2004 1:09 pm 
Regular
Regular

Joined: Thu Sep 09, 2004 6:46 pm
Posts: 96
How do I copy children of an object to another similar obj?

i.e:

A - B
\
C - D -E -G
\ \
F H
1) copy to I so children of I look like children of A with just with
different parent key of I->

I - B
\
C - D -E -G
\ \
F H

2) Also what's the simplest way to duplicate A entirely to a different primary key.

To clarify the difference between the 1) and 2) is that I's information is not altered when copying children of A to I. With 2) an new parent is created with the same information contained in A.

Please advise as to best solution for both 1 and 2

Thanks,
Garry


Top
 Profile  
 
 Post subject: any input on this?
PostPosted: Mon Dec 06, 2004 2:20 pm 
Regular
Regular

Joined: Thu Sep 09, 2004 6:46 pm
Posts: 96
any input on this?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 15, 2005 2:33 pm 
Beginner
Beginner

Joined: Thu Dec 02, 2004 4:49 am
Posts: 32
Have u got any success? I too need something like that!!!!


Top
 Profile  
 
 Post subject: I got a reply like RTFM
PostPosted: Sun Jan 16, 2005 4:51 pm 
Regular
Regular

Joined: Thu Sep 09, 2004 6:46 pm
Posts: 96
I got a reply like RTFM. See if you have better luck. I ended up brute forcing it. Very ugly code that makes hibernate look bad.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.