HandlingEvent eventTemplate = templateFor( HandlingEvent.class );
QueryBuilder<HandlingEventEntity> qb = qbf.newQueryBuilder( HandlingEventEntity.class )
.where( QueryExpressions.eq( eventTemplate.trackingId().get().id(), trackingIdString ) );
return uowf.currentUnitOfWork().newQuery( qb )
.orderBy( orderBy( eventTemplate.completionTime() ) );
}
};
}
}