FINERACT-2326: Upgrade dependencies
This commit is contained in:
+3
@@ -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);
|
||||
}
|
||||
|
||||
+1
-3
@@ -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() //
|
||||
|
||||
Reference in New Issue
Block a user