Package org.hibernate.metamodel.source.spi

Examples of org.hibernate.metamodel.source.spi.MetaAttributeContext


    metaAttributeContext = extractMetaAttributes();
  }

  private MetaAttributeContext extractMetaAttributes() {
    return hibernateMapping.getMeta() == null
        ? new MetaAttributeContext( metadata.getMetaAttributeContext() )
        : HbmHelper.extractMetaAttributeContext( hibernateMapping.getMeta(), true, metadata.getMetaAttributeContext() );
  }
View Full Code Here


  public static MetaAttributeContext extractMetaAttributeContext(
      List<XMLMetaElement> metaElementList,
      boolean onlyInheritable,
      MetaAttributeContext parentContext) {
    final MetaAttributeContext subContext = new MetaAttributeContext( parentContext );

    for ( XMLMetaElement metaElement : metaElementList ) {
      if ( onlyInheritable & !metaElement.isInherit() ) {
        continue;
      }

      final String name = metaElement.getAttribute();
      final MetaAttribute inheritedMetaAttribute = parentContext.getMetaAttribute( name );
      MetaAttribute metaAttribute = subContext.getLocalMetaAttribute( name );
      if ( metaAttribute == null || metaAttribute == inheritedMetaAttribute ) {
        metaAttribute = new MetaAttribute( name );
        subContext.add( metaAttribute );
      }
      metaAttribute.addValue( metaElement.getValue() );
    }

    return subContext;
View Full Code Here

    metaAttributeContext = extractMetaAttributes();
  }

  private MetaAttributeContext extractMetaAttributes() {
    return hibernateMapping.getMeta() == null
        ? new MetaAttributeContext( metadata.getMetaAttributeContext() )
        : HbmHelper.extractMetaAttributeContext( hibernateMapping.getMeta(), true, metadata.getMetaAttributeContext() );
  }
View Full Code Here

    metaAttributeContext = extractMetaAttributes();
  }

  private MetaAttributeContext extractMetaAttributes() {
    return hibernateMapping.getMeta() == null
        ? new MetaAttributeContext( metadata.getMetaAttributeContext() )
        : HbmHelper.extractMetaAttributeContext( hibernateMapping.getMeta(), true, metadata.getMetaAttributeContext() );
  }
View Full Code Here

TOP

Related Classes of org.hibernate.metamodel.source.spi.MetaAttributeContext

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.