mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 16:44:57 +00:00
HHH-13262 - javax.persistence.TransactionRequiredException: Executing an update/delete query
This commit is contained in:
parent
9d04140fc6
commit
a3bd66c0a4
@ -189,7 +189,7 @@ default long getTimestamp() {
|
||||
*/
|
||||
default void checkTransactionNeededForUpdateOperation(String exceptionMessage) {
|
||||
if ( !isTransactionInProgress() ) {
|
||||
throw getExceptionConverter().convert( new TransactionRequiredException( exceptionMessage ) );
|
||||
throw new TransactionRequiredException( exceptionMessage );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -395,7 +395,7 @@ public boolean isTransactionInProgress() {
|
||||
@Override
|
||||
public void checkTransactionNeededForUpdateOperation(String exceptionMessage) {
|
||||
if ( disallowOutOfTransactionUpdateOperations && !isTransactionInProgress() ) {
|
||||
throw getExceptionConverter().convert( new TransactionRequiredException( exceptionMessage ) );
|
||||
throw new TransactionRequiredException( exceptionMessage );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user