package com.jasamedika.medifirst2000.dao;

import java.util.Date;
import java.util.List;

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


@Repository("JadwalSupirAmbulanceDao")
public interface JadwalSupirAmbulanceDao extends PagingAndSortingRepository<JadwalSupirAmbulance, String>{
	
	@Query("select p from JadwalSupirAmbulance p where p.tanggal between :fromDate and :toDate ")
	public List<JadwalSupirAmbulance> getJadwalSupirAmbulanceByDate(@Param("fromDate") Date fromDate, @Param("toDate") Date toDate );
}
