mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-18 09:05:21 +00:00
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 @@ protected void markAsRollback() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void joinTransaction() {
|
public void joinTransaction() {
|
||||||
|
if( !isOpen() ){
|
||||||
|
throw new IllegalStateException( "EntityManager is closed" );
|
||||||
|
}
|
||||||
joinTransaction( false );
|
joinTransaction( false );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user