FINERACT-2326: Upgrade dependencies

This commit is contained in:
Adam Saghy
2025-09-12 10:32:13 -05:00
parent fa9c7b9364
commit 627ccf603f
9 changed files with 15 additions and 13 deletions
@@ -26,6 +26,7 @@ import org.apache.fineract.portfolio.loanaccount.domain.LoanTransaction;
import org.apache.fineract.portfolio.savings.domain.SavingsAccount;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
@@ -52,4 +53,6 @@ public interface NoteRepository extends JpaRepository<Note, Long>, JpaSpecificat
@Query("select note from Note note where note.savingsTransaction.id = :savingsTransactionId")
List<Note> findBySavingsTransactionId(@Param("savingsTransactionId") Long savingsTransactionId);
@Modifying
void deleteAllBySavingsAccount(SavingsAccount savingsAccount);
}
@@ -400,9 +400,7 @@ public class SavingsApplicationProcessWritePlatformServiceJpaRepositoryImpl impl
}
}
final List<Note> relatedNotes = this.noteRepository.findBySavingsAccount(account);
this.noteRepository.deleteAllInBatch(relatedNotes);
this.noteRepository.deleteAllBySavingsAccount(account);
this.savingAccountRepository.delete(account);
return new CommandProcessingResultBuilder() //