mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-28 06:49:09 +00:00
HHH-15225 Jta transactions, name queries with errors throw IllegalStateException instead of IllegalArgumentException when transaction is not active
This commit is contained in:
parent
ae51ae9c31
commit
5b85321bb9
@ -462,8 +462,10 @@ public TransactionStatus getStatus() {
|
||||
|
||||
@Override
|
||||
public void markRollbackOnly() {
|
||||
if ( jtaTransactionAdapter.getStatus() != TransactionStatus.NOT_ACTIVE ) {
|
||||
jtaTransactionAdapter.markRollbackOnly();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user