is there a way to deep clone a JPA object automatically?  i.e. to copy all the parameters and children but clear the id and version fields?

i saw that it is possible to do em.detach(object); and then reset the id and version but by the time i have done that i may as well have written a full copy function.

Reply via email to