31 lines
1012 B
Java
31 lines
1012 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.JenisLinen;
|
|
|
|
@Repository("JenisLinenDao")
|
|
public interface JenisLinenDao extends PagingAndSortingRepository<JenisLinen, Integer> {
|
|
|
|
@Query("select count(p.id) from JenisLinen p")
|
|
Integer getCountByKdJenisLinen();
|
|
|
|
@Query("select new map(" +
|
|
" jenislinen0_.id as id, " +
|
|
" jenislinen0_.statusEnabled as statusEnabled, " +
|
|
" jenislinen0_.kodeExternal as kodeExternal, " +
|
|
" jenislinen0_.namaExternal as namaExternal, " +
|
|
" jenislinen0_.noRec as noRec, " +
|
|
" jenislinen0_.jenisLinen as jenisLinen, " +
|
|
" jenislinen0_.kdJenisLinen as kdJenisLinen) " +
|
|
" from JenisLinen jenislinen0_ " +
|
|
" where statusEnabled in('true')")
|
|
List<Map<String, Object>> getJenisLinenByTrue();
|
|
|
|
}
|