-->
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: Storing object copies
PostPosted: Fri May 28, 2004 3:11 pm 
Regular
Regular

Joined: Wed Sep 10, 2003 7:09 am
Posts: 63
Hi,

I have a simple question about hibernate that I would like to ask you.

I would like to load an object (obj A), clone that object (obj B), and store that copy (obj B) in the database.

Now, suppose that object A has a collection. When I create object B, both A and B will point to the same collection.

My question is: is there any way that, when I store these objects in the database, hibernate duplicate their contents instead of pointing for the same contents?

Thanks in advance,
Joao Rangel


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.