Interface PartnerPolicyRepository
-
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<PartnerPolicy,String>,org.springframework.data.jpa.repository.JpaRepository<PartnerPolicy,String>,org.springframework.data.repository.PagingAndSortingRepository<PartnerPolicy,String>,org.springframework.data.repository.query.QueryByExampleExecutor<PartnerPolicy>,org.springframework.data.repository.Repository<PartnerPolicy,String>
@Repository public interface PartnerPolicyRepository extends org.springframework.data.jpa.repository.JpaRepository<PartnerPolicy,String>
- Author:
- sanjeev.shrivastava
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PartnerPolicyfindByApiKey(String policy_api_key)PartnerPolicyfindByPartnerId(String partId)-
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
-
-
-
-
Method Detail
-
findByPartnerId
@Query(value="select * from partner_policy ppr where ppr.part_id=?", nativeQuery=true) PartnerPolicy findByPartnerId(String partId)
-
findByApiKey
@Query(value="select * from partner_policy ppr where ppr.policy_api_key=?", nativeQuery=true) PartnerPolicy findByApiKey(String policy_api_key)
-
-