Update produkDao

Penerapan sorting data master profesi sesuai nama profesi
This commit is contained in:
Salman Manoe 2022-03-05 09:51:21 +07:00
parent b6aae107b7
commit a76f3b0ac6

View File

@ -17,7 +17,7 @@ import com.jasamedika.medifirst2000.entities.Profesi;
@Repository("profesiDao")
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();
String strAllActive = "select new Map(prf.id as id,prf.namaProfesi as namaProfesi) from Profesi prf where prf.statusEnabled is true";