HHH-10635 - Fix EntityManager.isOpen() should respect status of Session
(cherry picked from commit 2a79ebe165
)
This commit is contained in:
parent
f34b035f6c
commit
fdfcb5ddd3
|
@ -154,7 +154,7 @@ public class EntityManagerImpl extends AbstractEntityManagerImpl implements Sess
|
|||
checkEntityManagerFactory();
|
||||
try {
|
||||
if ( open ) {
|
||||
internalGetSession().isOpen(); //to force enlistment in tx
|
||||
open = internalGetSession().isOpen(); //to force enlistment in tx
|
||||
}
|
||||
return open;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue