Interface PartnerRepository

  • All Superinterfaces:
    org.springframework.data.repository.CrudRepository<Partner,​String>, org.springframework.data.jpa.repository.JpaRepository<Partner,​String>, org.springframework.data.repository.PagingAndSortingRepository<Partner,​String>, org.springframework.data.repository.query.QueryByExampleExecutor<Partner>, org.springframework.data.repository.Repository<Partner,​String>

    @Repository
    public interface PartnerRepository
    extends org.springframework.data.jpa.repository.JpaRepository<Partner,​String>
    Repository class for create partner id.
    Author:
    sanjeev.shrivastava
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      List<Partner> findByName​(String name)
      Method to fetch last updated partner id
      List<Partner> findByPartnerType​(String partnerType)  
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

        count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
      • Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

        deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
      • Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

        findAll
      • Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

        count, exists, findAll, findOne
    • Method Detail

      • findByName

        List<Partner> findByName​(String name)
        Method to fetch last updated partner id
        Parameters:
        name - partner name
        Returns:
        list of partner
      • findByPartnerType

        @Query(value="select * from partner ppr where ppr.partner_type_code=?",
               nativeQuery=true)
        List<Partner> findByPartnerType​(String partnerType)
        Parameters:
        partnerType -
        Returns: