remove read for clientid when deleting a loan

This commit is contained in:
John Woodlock
2012-05-30 23:45:43 +10:00
parent b39afa0153
commit cb0cf64a2b
@@ -116,8 +116,6 @@ public class LoanWritePlatformServiceJpaRepositoryImpl implements LoanWritePlatf
throw new LoanNotInSubmittedAndPendingApprovalStateCannotBeDeleted(loanId);
}
Long clientId = loan.getClient().getId();
List<Note> relatedNotes = this.noteRepository.findByLoanId(loan.getId());
this.noteRepository.deleteInBatch(relatedNotes);