public ims.emergency.vo.CubicleAllocationShortVoCollection listCubicleAllocationShortVo(ims.core.admin.vo.CareContextRefVo careContextRef) { if( careContextRef == null) throw new CodingRuntimeException("Care Context not provided"); DomainFactory factory = getDomainFactory(); String hsql = "select c1_1 from CubicleAllocation as c1_1 left join c1_1.attendance as c2_1 where (c2_1.id = :id)"; List cubicle = factory.find(hsql, new String[] {"id"}, new Object[] {careContextRef.getID_CareContext()}); if(cubicle != null && cubicle.size() > 0) { CubicleAllocationShortVoCollection tempColl = CubicleAllocationShortVoAssembler.createCubicleAllocationShortVoCollectionFromCubicleAllocation(cubicle); return tempColl; } return null; }