But you are incurring in last write wins. It is better to use transactions isolation levels to perform row lock. But the database must support them.
Hibernate 3.x has the Session.connection() but in 4 it is gone.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more