Beginner |
 |
Joined: Mon Mar 31, 2008 10:05 am Posts: 20
|
Hi,
I'm using Hibernate 3.2.6.GA and been wondering whether it is possible to have the same hibernate entity managed by 2 different sessions at the same time ?
I stumbled upon an issue in my application where the entity would be
1. loaded in session#1
2. merged in session#2
at this point session#2 would hang because session#1 holds an exclusive database lock. By the way database monitoring tells me the current statement in session#1 is a SELECT produced by HQL which seems to be generating the exclusive row lock blocking session#2 update.
|
|