package com.jasamedika.medifirst2000.dao;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
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.KajianEvaluasi;

@Repository("KajianEvaluasiDao")
public interface KajianEvaluasiDao extends PagingAndSortingRepository<KajianEvaluasi, Integer>,JpaSpecificationExecutor{
	
	@Query("select count(k.id) from KajianEvaluasi k where month(k.tglUsulan)=:month and year(k.tglUsulan)=:year")
	public Integer CountbyMonthYear(@Param("month") Integer month, @Param("year") Integer year);
}
