Package org.hibernate.persister.walking.internal

Examples of org.hibernate.persister.walking.internal.StandardAnyTypeDefinition


  public AnyMappingDefinition toAnyDefinition() {
    if ( !isAnyType() ) {
      throw new WalkingException( "Cannot build AnyMappingDefinition from non-any-typed attribute" );
    }
    // todo : not sure how lazy is propogated into the component for a subattribute of type any
    return new StandardAnyTypeDefinition( (AnyType) getType(), false );
  }
View Full Code Here


      public AnyMappingDefinition toAnyMappingDefinition() {
        final Type type = getType();
        if ( ! type.isAnyType() ) {
          throw new IllegalStateException( "Cannot treat collection index type as ManyToAny" );
        }
        return new StandardAnyTypeDefinition( (AnyType) type, isLazy() || isExtraLazy() );
      }
    };
  }
View Full Code Here

      public AnyMappingDefinition toAnyMappingDefinition() {
        final Type type = getType();
        if ( ! type.isAnyType() ) {
          throw new IllegalStateException( "Cannot treat collection element type as ManyToAny" );
        }
        return new StandardAnyTypeDefinition( (AnyType) type, isLazy() || isExtraLazy() );
      }

      @Override
      public EntityDefinition toEntityDefinition() {
        if ( !getType().isEntityType() ) {
View Full Code Here

    }
  }

  @Override
  public AnyMappingDefinition toAnyDefinition() {
    return new StandardAnyTypeDefinition(
        (AnyType) getType(),
        getSource().getEntityMetamodel().getProperties()[ attributeNumber() ].isLazy()
    );
  }
View Full Code Here

      public AnyMappingDefinition toAnyMappingDefinition() {
        final Type type = getType();
        if ( ! type.isAnyType() ) {
          throw new IllegalStateException( "Cannot treat collection index type as ManyToAny" );
        }
        return new StandardAnyTypeDefinition( (AnyType) type, isLazy() || isExtraLazy() );
      }
    };
  }
View Full Code Here

      public AnyMappingDefinition toAnyMappingDefinition() {
        final Type type = getType();
        if ( ! type.isAnyType() ) {
          throw new IllegalStateException( "Cannot treat collection element type as ManyToAny" );
        }
        return new StandardAnyTypeDefinition( (AnyType) type, isLazy() || isExtraLazy() );
      }

      @Override
      public EntityDefinition toEntityDefinition() {
        if ( !getType().isEntityType() ) {
View Full Code Here

      public AnyMappingDefinition toAnyMappingDefinition() {
        final Type type = getType();
        if ( ! type.isAnyType() ) {
          throw new IllegalStateException( "Cannot treat collection index type as ManyToAny" );
        }
        return new StandardAnyTypeDefinition( (AnyType) type, isLazy() || isExtraLazy() );
      }
    };
  }
View Full Code Here

      public AnyMappingDefinition toAnyMappingDefinition() {
        final Type type = getType();
        if ( ! type.isAnyType() ) {
          throw new IllegalStateException( "Cannot treat collection element type as ManyToAny" );
        }
        return new StandardAnyTypeDefinition( (AnyType) type, isLazy() || isExtraLazy() );
      }

      @Override
      public EntityDefinition toEntityDefinition() {
        if ( !getType().isEntityType() ) {
View Full Code Here

      public AnyMappingDefinition toAnyMappingDefinition() {
        final Type type = getType();
        if ( ! type.isAnyType() ) {
          throw new WalkingException( "Cannot treat collection element type as ManyToAny" );
        }
        return new StandardAnyTypeDefinition( (AnyType) type, isLazy() || isExtraLazy() );
      }

      @Override
      public EntityDefinition toEntityDefinition() {
        if ( getType().isComponentType() ) {
View Full Code Here

  public AnyMappingDefinition toAnyDefinition() {
    if ( !isAnyType() ) {
      throw new WalkingException( "Cannot build AnyMappingDefinition from non-any-typed attribute" );
    }
    // todo : not sure how lazy is propogated into the component for a subattribute of type any
    return new StandardAnyTypeDefinition( (AnyType) getType(), false );
  }
View Full Code Here

TOP

Related Classes of org.hibernate.persister.walking.internal.StandardAnyTypeDefinition

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.