io.mosip.pmp.partner.repository.PartnerPolicyRequestRepository Maven / Gradle / Ivy
package io.mosip.pmp.partner.repository;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import io.mosip.pmp.partner.entity.PartnerPolicyRequest;
public interface PartnerPolicyRequestRepository extends JpaRepository{
@Query(value = "select * from partner_policy_request ppr where ppr.part_id=?", nativeQuery = true )
List findByPartnerId(String part_id);
@Query(value = "select * from partner_policy_request ppr where ppr.part_id=?1 and ppr.policy_id=?2", nativeQuery = true )
PartnerPolicyRequest findByPartnerIdAndPolicyId(String partnerId, String policyId);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy