Then if you set the IDs to null, and persist it, it should create a new object graph.
But I'm not sure how you would make this recurse down an object graph.
It would probably depend on what the cascade attribute in the mapping file was set to.
On 5/4/06, Enrico Goosen <
[EMAIL PROTECTED]> wrote:
Is it possible to clone and persist an object graph in Hibernate?
I've come across the org.hibernate.util.SerializationHelper which can be used to clone an object graph, but I don't think that it can be persisted, since its id's will be the same as the original object graph.
Any ideas?
Enrico Goosen
Software Developer
SAICOM TECHNOLOGY
TEL: +2721 417 1375
FAX: +2721 417 1361
CEL: +2783 305 5676
EMAIL: [EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CTJUG Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/CTJUG-Forum
-~----------~----~----~----~------~----~------~--~---
