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

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

}
