public ims.emergency.vo.AttendanceKPIConfigVo getAttendanceKPIConfigVo(ims.core.resource.place.vo.LocationRefVo locRef) { if( locRef == null ) return null; DomainFactory factory = getDomainFactory(); String hsql = "select a1_1 from AttendanceKPIConfig as a1_1 left join a1_1.eDLocation as l1_1 where (l1_1.id = :idLocation)"; List locs = factory.find(hsql, new String[] {"idLocation"}, new Object[] {locRef.getID_Location()}); if(locs!= null && locs.size() > 0) { AttendanceKPIConfigVoCollection tempCol = AttendanceKPIConfigVoAssembler.createAttendanceKPIConfigVoCollectionFromAttendanceKPIConfig(locs); if( tempCol != null && tempCol.size() > 0) return tempCol.get(0); } return null; }