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


@Repository("JenisCutiDao")
public interface JenisCutiDao extends PagingAndSortingRepository<JenisCuti, Integer> {

	@Query("select NEW Map ("
			+ "a.id as id, "
			+ "a.name as namaCuti) "
			+ "from JenisCuti a")
	List<Map<String, Object>> getAllJenisCuti();
}
