HHH-6102 - ISE should be thrown when EM is colsed and joinTransaction is called, even with RESOURCE-LOCAL TX
This commit is contained in:
parent
dfcdab4a33
commit
72a2862ea9
|
@ -1143,6 +1143,9 @@ public abstract class AbstractEntityManagerImpl implements HibernateEntityManage
|
|||
}
|
||||
|
||||
public void joinTransaction() {
|
||||
if( !isOpen() ){
|
||||
throw new IllegalStateException( "EntityManager is closed" );
|
||||
}
|
||||
joinTransaction( false );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue