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.ProsesCuci; @Repository("ProsesCuciDao") public interface ProsesCuciDao extends PagingAndSortingRepository { @Query("select count(p.id) from ProsesCuci p") Integer getCountByKodeProsesCuci(); @Query("select new map(" + " a.id as id, " + " a.statusEnabled as statusEnabled, " + " a.kodeExternal as kodeExternal, " + " a.namaExternal as namaExternal, " + " a.kdProsesCuci as kdProsesCuci, " + " a.prosesCuci as prosesCuci ) " + " from ProsesCuci a where a.statusEnabled in('true')") List> getDataProsesCuci(); }