Package org.hibernate.cfg

Examples of org.hibernate.cfg.NotYetImplementedException


    if ( EntityFetch.class.isInstance( entityReference )
        && !FetchStrategyHelper.isJoinFetched( ((EntityFetch) entityReference).getFetchStrategy() ) ) {
      final EntityFetch fetch = (EntityFetch) entityReference;
      final FetchOwner fetchOwner = fetch.getOwner();
      if ( EntityReference.class.isInstance( fetchOwner ) ) {
        throw new NotYetImplementedException();
//          final EntityReference ownerEntityReference = (EntityReference) fetchOwner;
//          final EntityAliases ownerEntityAliases = context.getAliasResolutionContext()
//              .resolveEntityColumnAliases( ownerEntityReference );
//          final int propertyIndex = ownerEntityReference.getEntityPersister()
//              .getEntityMetamodel()
View Full Code Here


      else if ( CompositeIndexGraph.class.isInstance( currentFetch.getOwner() ) ) {
        CompositeIndexGraph compositeIndexGraph = (CompositeIndexGraph) currentFetch.getOwner();
        lhsAlias = resolveAliases( compositeIndexGraph.getCollectionReference() ).getElementTableAlias();
      }
      else {
        throw new NotYetImplementedException( "Cannot determine LHS alias for FetchOwner." );
      }

      final String[] aliasedLhsColumnNames = currentFetch.toSqlSelectFragments( lhsAlias );
      final String rhsAlias;
      if ( EntityReference.class.isInstance( currentFetch ) ) {
        rhsAlias = resolveAliases( (EntityReference) currentFetch ).getTableAlias();
      }
      else if ( CollectionReference.class.isInstance( joinableAssociation.getCurrentFetch() ) ) {
        rhsAlias = resolveAliases( (CollectionReference) currentFetch ).getCollectionTableAlias();
      }
      else {
        throw new NotYetImplementedException( "Cannot determine RHS alis for a fetch that is not an EntityReference or CollectionReference." );
      }

      // TODO: can't this be found in CollectionAliases or EntityAliases? should be moved to AliasResolutionContextImpl

      aliases = new JoinableAssociationAliasesImpl( lhsAlias, aliasedLhsColumnNames, rhsAlias );
View Full Code Here

          .setParameterTypes( null )
          .setCallable( queryAnn.callable() )
          .createNamedQueryDefinition();
    }
    else {
      throw new NotYetImplementedException( "Pure native scalar queries are not yet supported" );
    }
    mappings.addSQLQuery( query.getName(), query );
    if ( LOG.isDebugEnabled() ) {
      LOG.debugf( "Binding named native query: %s => %s", query.getName(), queryAnn.query() );
    }
View Full Code Here

    }
  }

  @Override
  public Type[] getReturnTypes() throws HibernateException {
    throw new NotYetImplementedException();
  }
View Full Code Here

  }

  @Override
  public ScrollableResultSetProcessor toOnDemandForm() {
    // todo : implement
    throw new NotYetImplementedException();
  }
View Full Code Here

          type = isDate ? "date" : "calendar_date";
          break;
        case TIME:
          type = "time";
          if ( !isDate ) {
            throw new NotYetImplementedException(
                "Calendar cannot persist TIME only"
                    + StringHelper.qualify( persistentClassName, propertyName )
            );
          }
          break;
View Full Code Here

          type = isDate ? "date" : "calendar_date";
          break;
        case TIME:
          type = "time";
          if ( !isDate ) {
            throw new NotYetImplementedException(
                "Calendar cannot persist TIME only"
                    + StringHelper.qualify( persistentClassName, propertyName )
            );
          }
          break;
View Full Code Here

          null,
          getBoolean( queryName, "org.hibernate.callable", hints )
      );
    }
    else {
      throw new NotYetImplementedException( "Pure native scalar queries are not yet supported" );
    }
    if ( isDefault ) {
      mappings.addDefaultSQLQuery( queryAnn.name(), query );
    }
    else {
View Full Code Here

          null,
          queryAnn.callable()
      );
    }
    else {
      throw new NotYetImplementedException( "Pure native scalar queries are not yet supported" );
    }
    mappings.addSQLQuery( queryAnn.name(), query );
    if ( log.isInfoEnabled() ) {
      log.info( "Binding named native query: " + queryAnn.name() + " => " + queryAnn.query() );
    }
View Full Code Here

          final org.hibernate.engine.EntityKey optionalObjectKey,
          final LockMode[] lockModes,
          final List hydratedObjects,
          final SessionImplementor session)
  throws HibernateException {
    if ( keys.length > 1 ) throw new NotYetImplementedException( "Loading involving several entities in one result set is not yet supported in OGM" );

    final int cols = persisters.length;

    if ( log.isDebugEnabled() ) {
      log.debug(
View Full Code Here

TOP

Related Classes of org.hibernate.cfg.NotYetImplementedException

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.