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

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