Update produkDao
Penerapan sorting data master profesi sesuai nama profesi
This commit is contained in:
parent
b6aae107b7
commit
a76f3b0ac6
@ -17,7 +17,7 @@ import com.jasamedika.medifirst2000.entities.Profesi;
|
|||||||
@Repository("profesiDao")
|
@Repository("profesiDao")
|
||||||
public interface ProfesiDao extends PagingAndSortingRepository<Profesi, Integer> {
|
public interface ProfesiDao extends PagingAndSortingRepository<Profesi, Integer> {
|
||||||
|
|
||||||
@Query("select prf from Profesi prf where prf.statusEnabled is true")
|
@Query("select prf from Profesi prf where prf.statusEnabled is true order by prf.namaProfesi asc")
|
||||||
public List<Profesi> findAllActive();
|
public List<Profesi> findAllActive();
|
||||||
|
|
||||||
String strAllActive = "select new Map(prf.id as id,prf.namaProfesi as namaProfesi) from Profesi prf where prf.statusEnabled is true";
|
String strAllActive = "select new Map(prf.id as id,prf.namaProfesi as namaProfesi) from Profesi prf where prf.statusEnabled is true";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user