Examples of CollectionReturnImpl


Examples of org.hibernate.loader.plan.build.internal.returns.CollectionReturnImpl

    // if we get here, it is a root
    if ( ! supportsRootCollectionReturns() ) {
      throw new HibernateException( "This strategy does not support root collection returns" );
    }

    final CollectionReturn collectionReturn = new CollectionReturnImpl( collectionDefinition, querySpaces );
    pushToCollectionStack( collectionReturn );
    addRootReturn( collectionReturn );

    associationKeyRegistered(
        new AssociationKey(
View Full Code Here

Examples of org.hibernate.loader.plan.build.internal.returns.CollectionReturnImpl

    // if we get here, it is a root
    if ( ! supportsRootCollectionReturns() ) {
      throw new HibernateException( "This strategy does not support root collection returns" );
    }

    final CollectionReturn collectionReturn = new CollectionReturnImpl( collectionDefinition, querySpaces );
    pushToCollectionStack( collectionReturn );
    addRootReturn( collectionReturn );

    associationKeyRegistered(
        new AssociationKey(
View Full Code Here

Examples of org.hibernate.loader.plan.build.internal.returns.CollectionReturnImpl

    // if we get here, it is a root
    if ( ! supportsRootCollectionReturns() ) {
      throw new HibernateException( "This strategy does not support root collection returns" );
    }

    final CollectionReturn collectionReturn = new CollectionReturnImpl( collectionDefinition, querySpaces );
    pushToCollectionStack( collectionReturn );
    addRootReturn( collectionReturn );

    associationKeyRegistered(
        new AssociationKey(
View Full Code Here

Examples of org.hibernate.loader.plan.build.internal.returns.CollectionReturnImpl

    // if we get here, it is a root
    if ( ! supportsRootCollectionReturns() ) {
      throw new HibernateException( "This strategy does not support root collection returns" );
    }

    final CollectionReturn collectionReturn = new CollectionReturnImpl( collectionDefinition, querySpaces );
    pushToCollectionStack( collectionReturn );
    addRootReturn( collectionReturn );

    associationKeyRegistered(
        new AssociationKey(
View Full Code Here

Examples of org.hibernate.loader.plan2.build.internal.returns.CollectionReturnImpl

    // if we get here, it is a root
    if ( ! supportsRootCollectionReturns() ) {
      throw new HibernateException( "This strategy does not support root collection returns" );
    }

    final CollectionReturn collectionReturn = new CollectionReturnImpl( collectionDefinition, this );
    pushToCollectionStack( collectionReturn );
    addRootReturn( collectionReturn );

    // also add an AssociationKey for the root so we can later on recognize circular references back to the root.
    // for a collection, the circularity would always be to an entity element...
    if ( collectionReturn.getElementGraph() != null ) {
      if ( EntityReference.class.isInstance( collectionReturn.getElementGraph() ) ) {
        final EntityReference entityReference = (EntityReference) collectionReturn.getElementGraph();
        final Joinable entityPersister = (Joinable) entityReference.getEntityPersister();
        associationKeyRegistered(
            new AssociationKey( entityPersister.getTableName(), entityPersister.getKeyColumnNames() )
        );
      }
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.