Hi *monu,
what I basically do is:
1) Make a clone of the MyObject o (with DeepCopy)
2) set a o.ID to Null
2) Session.merge(o).
MyObject has couple of collections, particularly maps with composite ID MyObject.compositeIdDetail(ID:[product_id, locale] , name)
and particularly bags with real ID, like:
MyObject.realIdDetail(ID, product_id, name, locale, text)
I have no problems with these composite ID collections, but the details with a real ID are just getting rewritten with an ID of the new Object.
What I want is a real clone, incl. all collections.
|