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.Pelaksana; @Repository("PelaksanaDao") public interface PelaksanaDao extends PagingAndSortingRepository{ @Query("select new Map (" + "a.id as id, " + "a.jenisPetugasPe as jenisPetugasPelaksana) " + "from JenisPetugasPelaksana a where a.id!=11 " + " and a.statusEnabled is true") public List> getJenisPetugasPelaksana(); }