package com.jasamedika.medifirst2000.dao;

import java.util.List;

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

@Repository("AlatKhususDao")
public interface AlatKhususDao extends PagingAndSortingRepository<AlatKhusus, String> {
	
	@Query("select model from AlatKhusus model where model.perencanaanAnestesi.noRec=:noRec")
	public List<AlatKhusus> findByNoRec(@Param("noRec") String noRec);
	
}
