public PatientMotorChartShortVoCollection listPatientMotorChartShort(CareContextRefVo careContextRefVo) { if(careContextRefVo == null ) throw new RuntimeException("Cannot get PatientMotorChartShortVoCollection for null CareContextRefVo"); DomainFactory factory = getDomainFactory(); StringBuffer hql = new StringBuffer("from PatientMotorChart mc where mc.clinicalContact.careContext.id = :id_CareContext"); java.util.List list = factory.find(hql.toString(), "id_CareContext", careContextRefVo.getID_CareContext()); return PatientMotorChartShortVoAssembler.createPatientMotorChartShortVoCollectionFromPatientMotorChart(list).sort(SortOrder.DESCENDING); }