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.UnitOrg;

@Repository("unitOrgDao")
public interface UnitOrgDao extends PagingAndSortingRepository<UnitOrg, Integer>{
	
	@Query("select model from UnitOrg model where model.kodeUnitOrg=:kodeUnitOrg")
	public UnitOrg findByKodeUnitOrg(@Param("kodeUnitOrg") String kodeUnitOrg);
	
}
