private void processToManyRelations(QueryObject<?> queryObject) throws IllegalQueryStateException {
  List<Entity> loadedEntities=entityLoaders.getEntitiesForQueryObject(queryObject);
  if (loadedEntities.isEmpty()) {
    return;
  }
  for (  Entity loadedEntity : loadedEntities) {
    for (    ToManyNode toManyNode : loadedEntity.getChildren(ToManyNode.class)) {
      if (findJoin(toManyNode.getName(),queryObject) != null) {
        toManyNode.setFetched(true);
      }
    }
  }
  for (  QJoin join : queryObject.getJoins()) {
    processToManyRelations(join.getTo());
  }
}

private void processToManyRelations ( QueryObject < ? > queryObject ) throws IllegalQueryStateException { List < Entity > loadedEntities = entityLoaders . getEntitiesForQueryObject ( queryObject ) ; if ( loadedEntities . isEmpty ( ) ) { return ; } for ( Entity loadedEntity : loadedEntities ) { for ( ToManyNode toManyNode : loadedEntity . getChildren ( ToManyNode . class ) ) { if ( findJoin ( toManyNode . getName ( ) , queryObject ) != null ) { toManyNode . setFetched ( true ) ; } } } for ( QJoin join : queryObject . getJoins ( ) ) { processToManyRelations ( join . getTo ( ) ) ; } }
sets all tomany relations which had query joins to ' fetched '
