Interface ClientAddressRepository

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

public interface ClientAddressRepository extends org.springframework.data.jpa.repository.JpaRepository<ClientAddress,Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<ClientAddress>
  • 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
    findByClientIdAndAddressId(long clientId, long addressId)
     
    findByClientIdAndAddressTypeAndIsActive(long clientId, org.apache.fineract.infrastructure.codes.domain.CodeValue addressType, boolean isActive)
     

    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

    • findByClientIdAndAddressTypeAndIsActive

      @Query("SELECT clientAddress FROM ClientAddress clientAddress WHERE clientAddress.client.id = :clientId AND clientAddress.addressType = :addressType AND clientAddress.isActive = :isActive ") ClientAddress findByClientIdAndAddressTypeAndIsActive(@Param("clientId") long clientId, @Param("addressType") org.apache.fineract.infrastructure.codes.domain.CodeValue addressType, @Param("isActive") boolean isActive)
    • findByClientIdAndAddressId

      @Query("SELECT clientAddress FROM ClientAddress clientAddress WHERE clientAddress.client.id = :clientId AND clientAddress.address.id = :addressId ") ClientAddress findByClientIdAndAddressId(@Param("clientId") long clientId, @Param("addressId") long addressId)