package com.jasamedika.medifirst2000.dao;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import com.jasamedika.medifirst2000.entities.KemenLemb;

@Repository("kemenLembDao")
public interface KemenLembDao extends PagingAndSortingRepository<KemenLemb, Integer>{
	
	@Query("select model from KemenLemb model where model.kodeKemenLemb=:kodeKemenLemb")
	KemenLemb findOneKemenLemb(@Param("kodeKemenLemb") String kodeKemenLemb);

}
