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.CrudRepository; import org.springframework.stereotype.Repository; import com.jasamedika.medifirst2000.entities.BundleSetAlat; @Repository("BundleSetAlatDao") public interface BundleSetAlatDao extends CrudRepository{ @Query("select new map(a.id as id, a.namaExternal as namaExternal)" + " from BundleSetAlat a where a.statusEnabled in('true')") List> getBundleSetAlat(); }