sudhakartv wrote:
sergeya,
What you have explained is my least opetion, Cause I have to send old values from Struts Action to all the way back to DAOSupport then fetch the data with old values and update which I already mentioned in my thread that it will be two call to DB and trying to find other ways :). But this is a general scenarion, every one does like this ? I mean making calles two times for edit ?
Thanks
Sudhakar
If you have secondary cache, then getting object by key not nessary resulted to query, but, if you didn't want select in any case, you may try following scenario:
1) Pass original unmodified object to lock method - this will associate object with session without query.
2) Modify object with new values.
3) Commit transaction
See
http://www.hibernate.org/hib_docs/v3/reference/en/html/objectstate.html#objectstate-detached