Skip to content

Commit

Permalink
Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
armincsutorastw committed Feb 15, 2024
1 parent c0838e9 commit c91cd3c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import org.springframework.transaction.TransactionStatus;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.interceptor.DefaultTransactionAttribute;
import org.springframework.transaction.support.DefaultTransactionDefinition;

@Slf4j
public class TransactionsHelper implements ITransactionsHelper {
Expand Down Expand Up @@ -94,8 +94,8 @@ public IBuilder withTimeout(Integer timeout) {
@Override
public <T> T call(Callable<T> callable) {
return ExceptionUtils.doUnchecked(() -> {
DefaultTransactionAttribute def =
propagation == null ? new DefaultTransactionAttribute() : new DefaultTransactionAttribute(propagation.value());
DefaultTransactionDefinition def =
propagation == null ? new DefaultTransactionDefinition() : new DefaultTransactionDefinition(propagation.value());
def.setReadOnly(readOnly);
def.setName(name);
if (isolation != null) {
Expand Down

0 comments on commit c91cd3c

Please sign in to comment.