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

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

}
