package com.jasamedika.medifirst2000.dao;

import java.util.Date;

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

/**
 * Repository class for PAPEliminasi
 * 
 * @author Askur
 */
@Repository("PapEliminasiDao")
public interface PapEliminasiDao extends PagingAndSortingRepository<PapEliminasi, String> {
	@Query("select model from PapEliminasi model where model.pasien.noCm=:noCm and model.tglInput=:tglInput")
	public PapEliminasi findPapEliminasiByNoCmAndTglInput(@Param("noCm") String noCm,@Param("tglInput") Date tglInput);

	@Query("select model from PapEliminasi model where model.noRec=:noRec")
	public PapEliminasi findByNoRec(@Param("noRec") String noRec);
}
