Regular |
![Regular Regular](./images/ranks/regular.gif) |
Joined: Wed Feb 22, 2006 11:28 am Posts: 65 Location: Santiago, Chile
|
Hello Friend:
If u see the hibernateĀ“s API document about the method merge(Object) of the class Session, it indicate:
[u]Copy the state of the given object onto the persistent object with the same identifier. If there is no persistent instance currently associated with the session, it will be loaded. Return the persistent instance. If the given instance is unsaved, save a copy of and return it as a newly persistent instance. The given instance does not become associated with the session. This operation cascades to associated instances if the association is mapped with cascade="merge".[/u]
I hope this can help u to solve ur problem.
|
|