Package org.hibernate.metamodel.binding

Examples of org.hibernate.metamodel.binding.SimpleAttributeBinding.initialize()


      attributeBinding.initialize( bindingState );
    }
    else {
      attributeBinding = entityBinding.makeSimpleAttributeBinding( attributeName );
      SimpleAttributeBindingState bindingState = new AttributeBindingStateImpl( simpleAttribute );
      attributeBinding.initialize( bindingState );
    }

    if ( configuredClass.hasOwnTable() ) {
      ColumnRelationalStateImpl columnRelationsState = new ColumnRelationalStateImpl(
          simpleAttribute, meta
View Full Code Here


          simpleAttribute, meta
      );
      TupleRelationalStateImpl relationalState = new TupleRelationalStateImpl();
      relationalState.addValueState( columnRelationsState );

      attributeBinding.initialize( relationalState );
    }
  }

  private void bindHibernateEntityAnnotation(EntityBindingStateImpl entityBindingState) {
    // initialize w/ the defaults
View Full Code Here

    SimpleAttributeBinding idBinding = entityBinding.makeSimplePrimaryKeyAttributeBinding( idName );

    MappedAttribute idAttribute = configuredClass.getMappedProperty( idName );

    AttributeDomainState domainState = new AttributeDomainState( entityBinding, idAttribute );
    idBinding.initialize( domainState );

    AttributeColumnRelationalState columnRelationsState = new AttributeColumnRelationalState( idAttribute, meta );
    AttributeTupleRelationalState relationalState = new AttributeTupleRelationalState();
    relationalState.addValueState( columnRelationsState );
    idBinding.initializeSimpleTupleValue( relationalState );
View Full Code Here

      else {
        attributeBinding = entityBinding.makeSimpleAttributeBinding( attributeName );
      }

      AttributeDomainState domainState = new AttributeDomainState( entityBinding, mappedAttribute );
      attributeBinding.initialize( domainState );

      AttributeColumnRelationalState columnRelationsState = new AttributeColumnRelationalState(
          mappedAttribute, meta
      );
      AttributeTupleRelationalState relationalState = new AttributeTupleRelationalState();
View Full Code Here

    }

    entityBinding.getEntity().getOrCreateSingularAttribute( idName );

    SimpleAttributeBinding attributeBinding = entityBinding.makeSimpleIdAttributeBinding( idName );
    attributeBinding.initialize( new AttributeBindingStateImpl( (SimpleAttribute) idAttribute ) );
    attributeBinding.initialize( new ColumnRelationalStateImpl( (SimpleAttribute) idAttribute, meta ) );
    bindSingleIdGeneratedValue( entityBinding, idName );

  }
View Full Code Here

    entityBinding.getEntity().getOrCreateSingularAttribute( idName );

    SimpleAttributeBinding attributeBinding = entityBinding.makeSimpleIdAttributeBinding( idName );
    attributeBinding.initialize( new AttributeBindingStateImpl( (SimpleAttribute) idAttribute ) );
    attributeBinding.initialize( new ColumnRelationalStateImpl( (SimpleAttribute) idAttribute, meta ) );
    bindSingleIdGeneratedValue( entityBinding, idName );

  }

  private void bindSingleIdGeneratedValue(EntityBinding entityBinding, String idPropertyName) {
View Full Code Here

      attributeBinding = entityDiscriminator.getValueBinding();
    }
    else if ( simpleAttribute.isVersioned() ) {
      attributeBinding = entityBinding.makeVersionBinding( attributeName );
      SimpleAttributeBindingState bindingState = new AttributeBindingStateImpl( simpleAttribute );
      attributeBinding.initialize( bindingState );
    }
    else {
      attributeBinding = entityBinding.makeSimpleAttributeBinding( attributeName );
      SimpleAttributeBindingState bindingState = new AttributeBindingStateImpl( simpleAttribute );
      attributeBinding.initialize( bindingState );
View Full Code Here

      attributeBinding.initialize( bindingState );
    }
    else {
      attributeBinding = entityBinding.makeSimpleAttributeBinding( attributeName );
      SimpleAttributeBindingState bindingState = new AttributeBindingStateImpl( simpleAttribute );
      attributeBinding.initialize( bindingState );
    }

    if ( configuredClass.hasOwnTable() ) {
      ColumnRelationalStateImpl columnRelationsState = new ColumnRelationalStateImpl(
          simpleAttribute, meta
View Full Code Here

          simpleAttribute, meta
      );
      TupleRelationalStateImpl relationalState = new TupleRelationalStateImpl();
      relationalState.addValueState( columnRelationsState );

      attributeBinding.initialize( relationalState );
    }
  }

  private void bindHibernateEntityAnnotation(EntityBinding entityBinding) {
    // initialize w/ the defaults
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.