diff --git a/src/main/java/org/openelisglobal/patienttype/daoimpl/PatientTypeDAOImpl.java b/src/main/java/org/openelisglobal/patienttype/daoimpl/PatientTypeDAOImpl.java index 0a99614b59..bff45f06ba 100644 --- a/src/main/java/org/openelisglobal/patienttype/daoimpl/PatientTypeDAOImpl.java +++ b/src/main/java/org/openelisglobal/patienttype/daoimpl/PatientTypeDAOImpl.java @@ -224,7 +224,8 @@ public PatientType readPatientType(String idString) { public List getPatientTypes(String description) throws LIMSRuntimeException { List list = new Vector<>(); try { - String sql = "from PatientType l where upper(l.description) like upper(:param) order by upper(l.description)"; + String sql = "from PatientType l where upper(l.description) like upper(:param) order by " + + "upper(l.description)"; org.hibernate.query.Query query = entityManager.unwrap(Session.class).createQuery(sql); query.setParameter("param", description + "%");