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
|