Examples of Fetch


Examples of org.hibernate.engine.profile.Fetch

    Iterator profiles = getLoadQueryInfluencers().getEnabledFetchProfileNames().iterator();
    while ( profiles.hasNext() ) {
      final String profileName = ( String ) profiles.next();
      final FetchProfile profile = getFactory().getFetchProfile( profileName );
      final Fetch fetch = profile.getFetchByRole( fetchRole );
      if ( fetch != null && Fetch.Style.JOIN == fetch.getStyle() ) {
        return true;
      }
    }
    return false;
  }
View Full Code Here

Examples of org.hibernate.loader.plan.spi.Fetch

//    }

    final FetchOwner fetchOwner = currentFetchOwner();
    fetchOwner.validateFetchPlan( fetchStrategy, attributeDefinition );

    final Fetch associationFetch;
    final AssociationAttributeDefinition.AssociationNature nature = attributeDefinition.getAssociationNature();
    if ( nature == AssociationAttributeDefinition.AssociationNature.ANY ) {
      return false;
//      throw new NotYetImplementedException( "AnyType support still in progress" );
    }
View Full Code Here

Examples of org.hibernate.metamodel.binding.FetchProfile.Fetch

      if ( !fetchMode.equals( org.hibernate.annotations.FetchMode.JOIN ) ) {
        throw new MappingException( "Only FetchMode.JOIN is currently supported" );
      }
      final String entityName = JandexHelper.getValue( override, "entity", String.class );
      final String associationName = JandexHelper.getValue( override, "association", String.class );
      fetches.add( new Fetch( entityName, associationName, fetchMode.toString().toLowerCase() ) );
    }
    metadata.addFetchProfile( new FetchProfile( name, fetches ) );
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.