I need to read object tree using hibernate from a database on a machine(Source) and persist it to another database on an other machine(Destination). Objects i read from source machine have their IDs and when persisting to destination machine, they overwrite objects with same IDs.
How can i persist a complete object tree without having to manually and recursively erase all IDs ?