| 
							
					| Hibernate Team |  
					|  |  Joined: Mon Aug 25, 2003 9:11 pm
 Posts: 4592
 Location: Switzerland
 | 
				
					| This call basically only reattaches a detached instance with the Session. The object can be modified after lock() and changes will be saved. However, you shouldn't have changed the detached instance while it wasn't associated with the Session.
 If you manipulated the detached object, use update() to reassociate it with a new Session. Using both lock() and update() to reattach doesn't make much sense.
 _________________
 JAVA PERSISTENCE WITH HIBERNATE
 http://jpwh.org
 Get the book, training, and consulting for your Hibernate team.
 
 
 |  |