Package org.hibernate.metamodel.binding

Examples of org.hibernate.metamodel.binding.ComponentAttributeBinding


          attributeSource.getClassReference(),
          null // component inheritance not YET supported
      );
      attribute = container.getAttributeContainer().createComponentAttribute( attributeName, component );
    }
    ComponentAttributeBinding componentAttributeBinding = container.makeComponentAttributeBinding( attribute );

    if ( StringHelper.isNotEmpty( attributeSource.getParentReferenceAttributeName() ) ) {
      final SingularAttribute parentReferenceAttribute =
          componentAttributeBinding.getComponent()
              .createSingularAttribute( attributeSource.getParentReferenceAttributeName() );
      componentAttributeBinding.setParentReference( parentReferenceAttribute );
    }

    componentAttributeBinding.setMetaAttributeContext(
        buildMetaAttributeContext( attributeSource.metaAttributes(), container.getMetaAttributeContext() )
    );

    bindAttributes( attributeSource, componentAttributeBinding );
  }
View Full Code Here


          attributeSource.getClassReference(),
          null // component inheritance not YET supported
      );
      attribute = container.getAttributeContainer().createComponentAttribute( attributeName, component );
    }
    ComponentAttributeBinding componentAttributeBinding = container.makeComponentAttributeBinding( attribute );

    if ( StringHelper.isNotEmpty( attributeSource.getParentReferenceAttributeName() ) ) {
      final SingularAttribute parentReferenceAttribute =
          componentAttributeBinding.getComponent()
              .createSingularAttribute( attributeSource.getParentReferenceAttributeName() );
      componentAttributeBinding.setParentReference( parentReferenceAttribute );
    }

    componentAttributeBinding.setMetaAttributeContext(
        buildMetaAttributeContext( attributeSource.metaAttributes(), container.getMetaAttributeContext() )
    );

    bindAttributes( attributeSource, componentAttributeBinding );
  }
View Full Code Here

          attributeSource.getClassReference(),
          null // component inheritance not YET supported
      );
      attribute = container.getAttributeContainer().createComponentAttribute( attributeName, component );
    }
    ComponentAttributeBinding componentAttributeBinding = container.makeComponentAttributeBinding( attribute );

    if ( StringHelper.isNotEmpty( attributeSource.getParentReferenceAttributeName() ) ) {
      final SingularAttribute parentReferenceAttribute =
          componentAttributeBinding.getComponent()
              .createSingularAttribute( attributeSource.getParentReferenceAttributeName() );
      componentAttributeBinding.setParentReference( parentReferenceAttribute );
    }

    componentAttributeBinding.setMetaAttributeContext(
        buildMetaAttributeContext( attributeSource.metaAttributes(), container.getMetaAttributeContext() )
    );

    bindAttributes( attributeSource, componentAttributeBinding );
  }
View Full Code Here

TOP

Related Classes of org.hibernate.metamodel.binding.ComponentAttributeBinding

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.