Package org.hibernate.metamodel.binding.state

Examples of org.hibernate.metamodel.binding.state.ManyToOneAttributeBindingState


        container.getOrCreateSingularAttribute( associationAttribute.getName() );
        ManyToOneAttributeBinding manyToOneAttributeBinding = entityBinding.makeManyToOneAttributeBinding(
            associationAttribute.getName()
        );

        ManyToOneAttributeBindingState bindingState = new ManyToOneBindingStateImpl( associationAttribute );
        manyToOneAttributeBinding.initialize( bindingState );

        ManyToOneRelationalStateImpl relationalState = new ManyToOneRelationalStateImpl();
        if ( entityClass.hasOwnTable() ) {
          ColumnRelationalStateImpl columnRelationsState = new ColumnRelationalStateImpl(
View Full Code Here


    }
  }

  private ManyToOneAttributeBinding makeManyToOneAttributeBinding(XMLManyToOneElement manyToOne,
                                  EntityBinding entityBinding) {
    ManyToOneAttributeBindingState bindingState =
        new HbmManyToOneAttributeBindingState(
            entityBinding.getEntity().getJavaType().getName(),
            bindingContext,
            entityBinding.getMetaAttributeContext(),
            manyToOne
        );

    // boolean (true here) indicates that by default column names should be guessed
    ManyToOneRelationalState relationalState =
        new HbmManyToOneRelationalStateContainer(
            bindingContext,
            true,
            manyToOne
        );

    entityBinding.getEntity().getOrCreateSingularAttribute( bindingState.getAttributeName() );
    ManyToOneAttributeBinding manyToOneAttributeBinding =
        entityBinding.makeManyToOneAttributeBinding( bindingState.getAttributeName() )
            .initialize( bindingState )
            .initialize( relationalState );

    return manyToOneAttributeBinding;
  }
View Full Code Here

    }
  }

  private ManyToOneAttributeBinding makeManyToOneAttributeBinding(XMLManyToOneElement manyToOne,
                 EntityBinding entityBinding) {
    ManyToOneAttributeBindingState bindingState =
        new HbmManyToOneAttributeBindingState(
            entityBinding.getEntity().getJavaType().getName(),
            bindingContext,
            entityBinding.getMetaAttributeContext(),
            manyToOne
        );

    // boolean (true here) indicates that by default column names should be guessed
    ManyToOneRelationalState relationalState =
            new HbmManyToOneRelationalStateContainer(
                bindingContext,
                true,
                manyToOne
            );

      entityBinding.getEntity().getOrCreateSingularAttribute( bindingState.getAttributeName() );
    ManyToOneAttributeBinding manyToOneAttributeBinding =
        entityBinding.makeManyToOneAttributeBinding( bindingState.getAttributeName() )
            .initialize( bindingState )
            .initialize( relationalState );

    return manyToOneAttributeBinding;
  }
View Full Code Here

        entityBinding.getEntity().getOrCreateSingularAttribute( associationAttribute.getName() );
        ManyToOneAttributeBinding manyToOneAttributeBinding = entityBinding.makeManyToOneAttributeBinding(
            associationAttribute.getName()
        );

        ManyToOneAttributeBindingState bindingState = new ManyToOneBindingStateImpl( associationAttribute );
        manyToOneAttributeBinding.initialize( bindingState );

        ManyToOneRelationalStateImpl relationalState = new ManyToOneRelationalStateImpl();
        if ( configuredClass.hasOwnTable() ) {
          ColumnRelationalStateImpl columnRelationsState = new ColumnRelationalStateImpl(
View Full Code Here

        entityBinding.getEntity().getOrCreateSingularAttribute( associationAttribute.getName() );
        ManyToOneAttributeBinding manyToOneAttributeBinding = entityBinding.makeManyToOneAttributeBinding(
            associationAttribute.getName()
        );

        ManyToOneAttributeBindingState bindingState = new ManyToOneBindingStateImpl( associationAttribute );
        manyToOneAttributeBinding.initialize( bindingState );

        ManyToOneRelationalStateImpl relationalState = new ManyToOneRelationalStateImpl();
        if ( configuredClass.hasOwnTable() ) {
          ColumnRelationalStateImpl columnRelationsState = new ColumnRelationalStateImpl(
View Full Code Here

    }
  }

  private ManyToOneAttributeBinding makeManyToOneAttributeBinding(XMLManyToOneElement manyToOne,
                 EntityBinding entityBinding) {
    ManyToOneAttributeBindingState bindingState =
        new HbmManyToOneAttributeBindingState(
            entityBinding.getEntity().getPojoEntitySpecifics().getClassName(),
            bindingContext,
            entityBinding.getMetaAttributeContext(),
            manyToOne
        );

    // boolean (true here) indicates that by default column names should be guessed
    ManyToOneRelationalState relationalState =
            new HbmManyToOneRelationalStateContainer(
                bindingContext,
                true,
                manyToOne
            );

      entityBinding.getEntity().getOrCreateSingularAttribute( bindingState.getAttributeName() );
    ManyToOneAttributeBinding manyToOneAttributeBinding =
        entityBinding.makeManyToOneAttributeBinding( bindingState.getAttributeName() )
            .initialize( bindingState )
            .initialize( relationalState );

    return manyToOneAttributeBinding;
  }
View Full Code Here

TOP

Related Classes of org.hibernate.metamodel.binding.state.ManyToOneAttributeBindingState

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.