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

/**
 * Repository class for PapRiwayatTumbuhKembang
 * 
 * @author Askur
 */
@Repository("PapRiwayatTumbuhKembangDao")
public interface PapRiwayatTumbuhKembangDao extends PagingAndSortingRepository<PapRiwayatTumbuhKembang, String> {
	@Query("select model from PapRiwayatTumbuhKembang model where model.pasienDaftar.noRec=:noRec and model.tglInput=:tglInput")
	public PapRiwayatTumbuhKembang findPapRiwayatTumbuhKembangByNoCmAndTglInput(@Param("noRec") String noCm,@Param("tglInput") Date tglInput);

}
