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

io.mosip.pms.common.repository.PartnerRepository Maven / Gradle / Ivy

There is a newer version: 1.3.0-dp.1
Show newest version
package io.mosip.pms.common.repository;

import java.util.List;

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

import io.mosip.pms.common.entity.Partner;


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

@Repository
public interface PartnerRepository extends JpaRepository {

	/**
	 * Method to fetch last updated partner id
	 * @param name partner name
	 * @return list of partner
	 */
	
	public List findByName(String name);
	
	/**
	 * 
	 * @param partnerType
	 * @return
	 */
	@Query(value = "select * from partner ppr where ppr.partner_type_code=?", nativeQuery = true)
	public List findByPartnerType(String partnerType);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy