Change the default transaction isolation level to DEFAULT in AbstractJobExplorerFactoryBean

Resolves #4230
This commit is contained in:
Mahmoud Ben Hassine
2022-11-23 07:13:37 +01:00
parent f72e0f4d16
commit fd7dd5f1a7

View File

@@ -120,7 +120,7 @@ public abstract class AbstractJobExplorerFactoryBean implements FactoryBean<JobE
if (this.transactionAttributeSource == null) {
Properties transactionAttributes = new Properties();
String transactionProperties = String.join(",", TRANSACTION_PROPAGATION_PREFIX + Propagation.SUPPORTS,
TRANSACTION_ISOLATION_LEVEL_PREFIX + Isolation.READ_COMMITTED);
TRANSACTION_ISOLATION_LEVEL_PREFIX + Isolation.DEFAULT);
transactionAttributes.setProperty("get*", transactionProperties);
transactionAttributes.setProperty("find*", transactionProperties);
this.transactionAttributeSource = new NameMatchTransactionAttributeSource();