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

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

}
