Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ public void updateSelected() {

public List<DoctorSpeciality> completeSpeciality(String qry) {
List<DoctorSpeciality> lst;
lst = getFacade().findByJpql("select c from DoctorSpeciality c where c.retired=false and (c.name) like '%" + qry.toUpperCase() + "%' order by c.name");
Map<String, Object> m = new HashMap<>();
m.put("qry", "%" + qry.toUpperCase() + "%");
lst = getFacade().findByJpql("select c from DoctorSpeciality c where c.retired=false and upper(c.name) like :qry order by c.name", m);
return lst;
}

Expand Down
Loading