Hibernate does offer a way to load an object for update:
Session.load(class, id, LockMode.UPGRADE)
This is certainly not optmistic control but pessimistic locking. Tom's solution should
do the trick for databases where optimistic control is the only viable approach (e.g.
Hypersonic).
My alternative aims at environments where optimistic control is unfavorable due to high
probability of concurrent updates.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973111#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...