2021-01-07 11:34:56 +07:00

20 lines
657 B
Java

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.KelompokJabatan;
@Repository
public interface KelompokJabatanDao extends PagingAndSortingRepository<KelompokJabatan, Integer>{
@Query("select new map (model.id as id, model.namaKelompokJabatan as namaKelompokJabatan) from KelompokJabatan model where model.statusEnabled is true")
public List<Map<String, Object>> getAllByStatusEnabled();
}