public TrackingLiteVo getTrackingLiteVo(TrackingRefVo trackingRef) { if( trackingRef == null) throw new CodingRuntimeException("Tracking cannot be null"); DomainFactory factory = getDomainFactory(); String hsql = "from Tracking as t1_1 where (t1_1.id = :idTracking) "; List trackings = factory.find(hsql, new String[] {"idTracking"}, new Object[] { trackingRef.getID_Tracking()}); if( trackings != null && trackings.size() > 0) { TrackingLiteVoCollection tempColl = TrackingLiteVoAssembler.createTrackingLiteVoCollectionFromTracking(trackings); if( tempColl != null && tempColl.size() > 0) { return tempColl.get(0); } } return null; }