Package io.mosip.pms.common.repository
Interface PartnerPolicyRequestRepository
-
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<PartnerPolicyRequest,String>,org.springframework.data.jpa.repository.JpaRepository<PartnerPolicyRequest,String>,org.springframework.data.repository.PagingAndSortingRepository<PartnerPolicyRequest,String>,org.springframework.data.repository.query.QueryByExampleExecutor<PartnerPolicyRequest>,org.springframework.data.repository.Repository<PartnerPolicyRequest,String>
public interface PartnerPolicyRequestRepository extends org.springframework.data.jpa.repository.JpaRepository<PartnerPolicyRequest,String>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<PartnerPolicyRequest>findByPartnerId(String part_id)List<PartnerPolicyRequest>findByPartnerIdAndPolicyId(String partnerId, String policyId)List<PartnerPolicyRequest>findByPartnerIdAndPolicyIdAndStatusCode(String partnerId, String policyId, String status)PartnerPolicyRequestfindByPartnerIdAndReqId(String partnerId, String apikeyReqId)-
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_request ppr where ppr.part_id=?", nativeQuery=true) List<PartnerPolicyRequest> findByPartnerId(String part_id)
-
findByPartnerIdAndPolicyId
@Query(value="select * from partner_policy_request ppr where ppr.part_id=?1 and ppr.policy_id=?2", nativeQuery=true) List<PartnerPolicyRequest> findByPartnerIdAndPolicyId(String partnerId, String policyId)
-
findByPartnerIdAndReqId
@Query(value="select * from partner_policy_request ppr where ppr.part_id=?1 and ppr.id=?2", nativeQuery=true) PartnerPolicyRequest findByPartnerIdAndReqId(String partnerId, String apikeyReqId)
-
findByPartnerIdAndPolicyIdAndStatusCode
@Query(value="select * from partner_policy_request ppr where ppr.part_id=?1 and ppr.policy_id=?2 and ppr.status_code=?3", nativeQuery=true) List<PartnerPolicyRequest> findByPartnerIdAndPolicyIdAndStatusCode(String partnerId, String policyId, String status)
-
-