Interface AccountAssociationsRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<AccountAssociations,Long>, org.springframework.data.jpa.repository.JpaRepository<AccountAssociations,Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<AccountAssociations>, org.springframework.data.repository.ListCrudRepository<AccountAssociations,Long>, org.springframework.data.repository.ListPagingAndSortingRepository<AccountAssociations,Long>, org.springframework.data.repository.PagingAndSortingRepository<AccountAssociations,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<AccountAssociations>, org.springframework.data.repository.Repository<AccountAssociations,Long>

public interface AccountAssociationsRepository extends org.springframework.data.jpa.repository.JpaRepository<AccountAssociations,Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<AccountAssociations>
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor

    org.springframework.data.jpa.repository.JpaSpecificationExecutor.SpecificationFluentQuery<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    findByLoanIdAndType(Long loanId, Integer accountAssociationType)
     
    findBySavingsIdAndType(Long savingsId, Integer accountAssociationType)
     

    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, 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

    • findByLoanIdAndType

      @Query("select aa from AccountAssociations aa where aa.loanAccount.id= :loanId and aa.associationType = :associationType") AccountAssociations findByLoanIdAndType(@Param("loanId") Long loanId, @Param("associationType") Integer accountAssociationType)
    • findBySavingsIdAndType

      @Query("select aa from AccountAssociations aa where aa.savingsAccount.id= :savingsId and aa.associationType = :associationType") AccountAssociations findBySavingsIdAndType(@Param("savingsId") Long savingsId, @Param("associationType") Integer accountAssociationType)