HHH-10635 - Fix EntityManager.isOpen() should respect status of Session

(cherry picked from commit 2a79ebe165)
This commit is contained in:
Andrea Boriero 2016-03-30 12:52:04 +02:00 committed by Gail Badner
parent f34b035f6c
commit fdfcb5ddd3
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}