HHH-13433 EntityManager.find() should only check for roll-back-only condition if there is an active JTA transaction, otherwise ORM should throw throw convert( e, lockOptions )
This commit is contained in:
parent
6dc5f37827
commit
a682a7d19c
|
@ -3347,7 +3347,7 @@ public final class SessionImpl
|
|||
throw getExceptionConverter().convert( new IllegalArgumentException( e.getMessage(), e ) );
|
||||
}
|
||||
catch ( JDBCException e ) {
|
||||
if ( accessTransaction().getRollbackOnly() ) {
|
||||
if ( accessTransaction().isActive() && accessTransaction().getRollbackOnly() ) {
|
||||
// assume this is the similar to the WildFly / IronJacamar "feature" described under HHH-12472
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue