Question: what is difference between sessions lock() and update() method?
Answer: Both method save or update() method are intended for reattaching a detached object. session. lock() method simply reattaches the object to the session without checking or updating the data base on the assumption that database in sync with the detached object. ... update() or session.