HHH-10635 - Fix EntityManager.isOpen() should respect status of Session
This commit is contained in:
parent
e8dec1a062
commit
2a79ebe165
|
@ -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