Package org.hibernate.persister.entity

Examples of org.hibernate.persister.entity.SQLLoadable


    log.trace( "mapping alias [" + alias + "] to collection-suffix [" + suffix + "]" );
    alias2CollectionSuffix.put( alias, suffix );
    collectionPropertyResultMaps.put( alias, propertyResults );

    if ( collectionPersister.isOneToMany() ) {
      SQLLoadable persister = ( SQLLoadable ) collectionPersister.getElementPersister();
      addPersister( alias, filter( propertyResults ), persister );
    }
  }
View Full Code Here


    if ( !alias2Persister.containsKey( ownerAlias ) ) {
      NativeSQLQueryNonScalarReturn ownerReturn = ( NativeSQLQueryNonScalarReturn ) alias2Return.get(ownerAlias);
      processReturn( ownerReturn );
    }

    SQLLoadable ownerPersister = ( SQLLoadable ) alias2Persister.get( ownerAlias );
    Type returnType = ownerPersister.getPropertyType( fetchReturn.getOwnerProperty() );

    if ( returnType.isCollectionType() ) {
      String role = ownerPersister.getEntityName() + '.' + fetchReturn.getOwnerProperty();
      addCollection( role, alias, fetchReturn.getPropertyResultsMap() );
//      collectionOwnerAliases.add( ownerAlias );
    }
    else if ( returnType.isEntityType() ) {
      EntityType eType = ( EntityType ) returnType;
      String returnEntityName = eType.getAssociatedEntityName();
      SQLLoadable persister = getSQLLoadable( returnEntityName );
      addPersister( alias, fetchReturn.getPropertyResultsMap(), persister );
    }

  }
View Full Code Here

    if ( alias2Persister.containsKey( rootReturn.getAlias() ) ) {
      // already been processed...
      return;
    }

    SQLLoadable persister = getSQLLoadable( rootReturn.getReturnEntityName() );
    addPersister( rootReturn.getAlias(), rootReturn.getPropertyResultsMap(), persister );
  }
View Full Code Here

    LOG.tracev( "Mapping alias [{0}] to collection-suffix [{1}]", alias, suffix );
    alias2CollectionSuffix.put( alias, suffix );
    collectionPropertyResultMaps.put( alias, propertyResults );

    if ( collectionPersister.isOneToMany() || collectionPersister.isManyToMany() ) {
      SQLLoadable persister = ( SQLLoadable ) collectionPersister.getElementPersister();
      addPersister( alias, filter( propertyResults ), persister );
    }
  }
View Full Code Here

    if ( !alias2Persister.containsKey( ownerAlias ) ) {
      NativeSQLQueryNonScalarReturn ownerReturn = ( NativeSQLQueryNonScalarReturn ) alias2Return.get(ownerAlias);
      processReturn( ownerReturn );
    }

    SQLLoadable ownerPersister = ( SQLLoadable ) alias2Persister.get( ownerAlias );
    Type returnType = ownerPersister.getPropertyType( fetchReturn.getOwnerProperty() );

    if ( returnType.isCollectionType() ) {
      String role = ownerPersister.getEntityName() + '.' + fetchReturn.getOwnerProperty();
      addCollection( role, alias, fetchReturn.getPropertyResultsMap() );
//      collectionOwnerAliases.add( ownerAlias );
    }
    else if ( returnType.isEntityType() ) {
      EntityType eType = ( EntityType ) returnType;
      String returnEntityName = eType.getAssociatedEntityName();
      SQLLoadable persister = getSQLLoadable( returnEntityName );
      addPersister( alias, fetchReturn.getPropertyResultsMap(), persister );
    }

  }
View Full Code Here

    if ( alias2Persister.containsKey( rootReturn.getAlias() ) ) {
      // already been processed...
      return;
    }

    SQLLoadable persister = getSQLLoadable( rootReturn.getReturnEntityName() );
    addPersister( rootReturn.getAlias(), rootReturn.getPropertyResultsMap(), persister );
  }
View Full Code Here

    LOG.tracev( "Mapping alias [{0}] to collection-suffix [{1}]", alias, suffix );
    alias2CollectionSuffix.put( alias, suffix );
    collectionPropertyResultMaps.put( alias, propertyResults );

    if ( collectionPersister.isOneToMany() || collectionPersister.isManyToMany() ) {
      SQLLoadable persister = ( SQLLoadable ) collectionPersister.getElementPersister();
      addPersister( alias, filter( propertyResults ), persister );
    }
  }
View Full Code Here

    if ( !alias2Persister.containsKey( ownerAlias ) ) {
      NativeSQLQueryNonScalarReturn ownerReturn = ( NativeSQLQueryNonScalarReturn ) alias2Return.get(ownerAlias);
      processReturn( ownerReturn );
    }

    SQLLoadable ownerPersister = ( SQLLoadable ) alias2Persister.get( ownerAlias );
    Type returnType = ownerPersister.getPropertyType( fetchReturn.getOwnerProperty() );

    if ( returnType.isCollectionType() ) {
      String role = ownerPersister.getEntityName() + '.' + fetchReturn.getOwnerProperty();
      addCollection( role, alias, fetchReturn.getPropertyResultsMap() );
//      collectionOwnerAliases.add( ownerAlias );
    }
    else if ( returnType.isEntityType() ) {
      EntityType eType = ( EntityType ) returnType;
      String returnEntityName = eType.getAssociatedEntityName();
      SQLLoadable persister = getSQLLoadable( returnEntityName );
      addPersister( alias, fetchReturn.getPropertyResultsMap(), persister );
    }

  }
View Full Code Here

TOP

Related Classes of org.hibernate.persister.entity.SQLLoadable

Copyright © 2018 www.massapicom. 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.