package com.jasamedika.medifirst2000.dao;

import java.util.List;
import java.util.Map;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import com.jasamedika.medifirst2000.entities.RangeMasaKerja;

@Repository("RangeMasaKerjaDao")
public interface RangeMasaKerjaDao extends PagingAndSortingRepository<RangeMasaKerja, Integer>{
	@Query("SELECT new map (model.id as id,model.namaRange as namaRange) "
			+ "from RangeMasaKerja model")
	List<Map<String,Object>> findAllRangeMasaKerja();
}
