-->
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: Problem with cloning objects
PostPosted: Wed Aug 29, 2007 12:18 pm 
Newbie

Joined: Wed May 12, 2004 12:58 pm
Posts: 3
Hi,

I cant image how to clone object that is persisted to database.

My goal is to read object from database and the create identical object with different ID.

So if I have object Person with ID 1 in database I would like to create same Person object to database with ID 2 Simple "one level" object cloning works fine, but collections are not cloned at all they are "moved" to new object.

After cloning full object tree source object doesn't contain any collections, all collection are moved to new cloned object.

Have u tryed to do anything similar?

I'm using Hibernate 3.0.5 with Java 5


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.