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

@Repository("ProduksiDetailDao")
public interface ProduksiDetailDao extends PagingAndSortingRepository<ProduksiDetail, String> {
	
	@Query("select model from ProduksiDetail model where model.pelayananAdmixture.noRec=:noRec")
	public List<ProduksiDetail> findByNoRec(@Param("noRec") String noRec);
	
	@Query("select model from ProduksiDetail model where model.pelayananCytotoxic.noRec=:noRec")
	public List<ProduksiDetail> findCytotoxicByNoRec(@Param("noRec") String noRec);

}
