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

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor

    count, delete, exists, findAll, findAll, findAll, findBy, findOne

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods 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)