All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.mosip.pmp.partner.repository.PartnerServiceRepository Maven / Gradle / Ivy

package io.mosip.pmp.partner.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import io.mosip.pmp.partner.entity.Partner;

/**
 * Repository class for create partner id.
 * @author sanjeev.shrivastava
 *
 */

@Repository
public interface PartnerServiceRepository extends JpaRepository {
	
	@Query(value = "select * from partner ppr where ppr.name=?", nativeQuery = true)
	public Partner findByName(String name);
	
	@Query(value = "select * from partner ppr where ppr.id=?", nativeQuery = true)
	public Partner findByIdAndIsDeletedFalseorIsDeletedIsNullAndIsActiveTrue(String deviceProviderId);
	
	@Query(value ="select * from partner ppr where ppr.email_id=?",nativeQuery = true)
	public Partner findByEmailId(String emailId);
	
	Partner findByIdAndIsActiveIsTrue(String id);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy