Interface AccountTransferRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<AccountTransferTransaction,,Long> org.springframework.data.jpa.repository.JpaRepository<AccountTransferTransaction,,Long> org.springframework.data.jpa.repository.JpaSpecificationExecutor<AccountTransferTransaction>,org.springframework.data.repository.ListCrudRepository<AccountTransferTransaction,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<AccountTransferTransaction,,Long> org.springframework.data.repository.PagingAndSortingRepository<AccountTransferTransaction,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<AccountTransferTransaction>,org.springframework.data.repository.Repository<AccountTransferTransaction,Long>
public interface AccountTransferRepository
extends org.springframework.data.jpa.repository.JpaRepository<AccountTransferTransaction,Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<AccountTransferTransaction>
-
Method Summary
Modifier and TypeMethodDescriptionfindAllByLoanId(Long accountNumber) findByFromLoanId(Long accountNumber) findByFromLoanTransactions(Collection<Long> loanTransactions) findByToLoanTransactionId(Long loanTransactionId) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor
count, delete, exists, findAll, findAll, findAll, findBy, findOneMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findByFromLoanId
@Query("select att from AccountTransferTransaction att where att.accountTransferDetails.fromLoanAccount.id= :accountNumber and att.reversed=false") List<AccountTransferTransaction> findByFromLoanId(@Param("accountNumber") Long accountNumber) -
findAllByLoanId
@Query("select att from AccountTransferTransaction att where (att.accountTransferDetails.fromLoanAccount.id= :accountNumber or att.accountTransferDetails.toLoanAccount.id=:accountNumber) and att.reversed=false order by att.id desc") List<AccountTransferTransaction> findAllByLoanId(@Param("accountNumber") Long accountNumber) -
findByToLoanTransactionId
@Query("select att from AccountTransferTransaction att where att.toLoanTransaction.id= :loanTransactionId and att.reversed=false") AccountTransferTransaction findByToLoanTransactionId(@Param("loanTransactionId") Long loanTransactionId) -
findByFromLoanTransactions
@Query("select att from AccountTransferTransaction att where att.fromLoanTransaction.id IN :loanTransactions and att.reversed=false") List<AccountTransferTransaction> findByFromLoanTransactions(@Param("loanTransactions") Collection<Long> loanTransactions)
-