[FINERACT-1676] fixing saving dormant account job

This commit is contained in:
taskain7
2022-07-29 15:15:25 +02:00
committed by Arnold Gálovics
parent 81601645a4
commit b21cdf59b1
2 changed files with 4 additions and 5 deletions
@@ -132,6 +132,7 @@ import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.CollectionUtils;
@@ -1711,7 +1712,7 @@ public class SavingsAccountWritePlatformServiceJpaRepositoryImpl implements Savi
}
@Override
@Transactional
@Transactional(propagation = Propagation.REQUIRES_NEW)
public void setSubStatusInactive(Long savingsId) {
final SavingsAccount account = this.savingAccountAssembler.assembleFrom(savingsId, false);
final Set<Long> existingTransactionIds = new HashSet<>();
@@ -1723,7 +1724,7 @@ public class SavingsAccountWritePlatformServiceJpaRepositoryImpl implements Savi
}
@Override
@Transactional
@Transactional(propagation = Propagation.REQUIRES_NEW)
public void setSubStatusDormant(Long savingsId) {
final SavingsAccount account = this.savingAccountAssembler.assembleFrom(savingsId, false);
account.setSubStatusDormant();
@@ -1731,7 +1732,7 @@ public class SavingsAccountWritePlatformServiceJpaRepositoryImpl implements Savi
}
@Override
@Transactional
@Transactional(propagation = Propagation.REQUIRES_NEW)
public void escheat(Long savingsId) {
final SavingsAccount account = this.savingAccountAssembler.assembleFrom(savingsId, false);
final Set<Long> existingTransactionIds = new HashSet<>();