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: Copying an Object Hierarchy
PostPosted: Mon Nov 19, 2007 3:24 am 
Newbie

Joined: Mon Nov 19, 2007 12:12 am
Posts: 5
We have an object tree like:

Code:
   
    C
   /
A–B-D
\   
  C


Apart from being able to persist A and associated composite child objects (B C and D) we also would like to be able to take a copy of B to produce something like:

Code:
    C
   /
A–B-D
|\   
| C
|
|   C
|  /
\–B’-D’



It seems feasible to load our persisted information about B and its composite children into a copy. However we want to create a copy of B (B’) such that some of the composite child objects are copied but others, C, are not. That is all instance of C are the same.

In section 9.11 nHibernate documentation suggests that a selective deep copy might be available using IClassMetadata.

Any suggestions or experiences?


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.