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

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

}
