Package org.hibernate.metamodel.source.annotations.attribute.state.relational

Examples of org.hibernate.metamodel.source.annotations.attribute.state.relational.ColumnRelationalStateImpl


    attributeBinding.initialize( new AttributeBindingStateImpl( (SimpleAttribute) idAttribute ) );

    TupleRelationalStateImpl state = new TupleRelationalStateImpl();
    EmbeddableClass embeddableClass = entityClass.getEmbeddedClasses().get( idName );
    for ( SimpleAttribute attr : embeddableClass.getSimpleAttributes() ) {
      state.addValueState( new ColumnRelationalStateImpl( attr, meta ) );
    }
    attributeBinding.initialize( state );
    Map<String, String> parms = new HashMap<String, String>( 1 );
    parms.put( IdentifierGenerator.ENTITY_NAME, entityBinding.getEntity().getName() );
    IdGenerator generator = new IdGenerator( "NAME", "assigned", parms );
View Full Code Here


    MappedAttribute idAttribute = iter.next();
    Attribute attribute = container.getOrCreateSingularAttribute( idAttribute.getName() );

    SimpleAttributeBinding attributeBinding = entityBinding.makeSimpleIdAttributeBinding( attribute );
    attributeBinding.initialize( new AttributeBindingStateImpl( (SimpleAttribute) idAttribute ) );
    attributeBinding.initialize( new ColumnRelationalStateImpl( (SimpleAttribute) idAttribute, meta ) );
    bindSingleIdGeneratedValue( entityBinding, idAttribute.getName() );
  }
View Full Code Here

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

        ManyToOneRelationalStateImpl relationalState = new ManyToOneRelationalStateImpl();
        if ( entityClass.hasOwnTable() ) {
          ColumnRelationalStateImpl columnRelationsState = new ColumnRelationalStateImpl(
              associationAttribute, meta
          );
          relationalState.addValueState( columnRelationsState );
        }
        manyToOneAttributeBinding.initialize( relationalState );
View Full Code Here

      SimpleAttributeBindingState bindingState = new AttributeBindingStateImpl( simpleAttribute );
      attributeBinding.initialize( bindingState );
    }

    if ( entityClass.hasOwnTable() ) {
      ColumnRelationalStateImpl columnRelationsState = new ColumnRelationalStateImpl(
          simpleAttribute, meta
      );
      TupleRelationalStateImpl relationalState = new TupleRelationalStateImpl();
      relationalState.addValueState( columnRelationsState );
View Full Code Here

TOP

Related Classes of org.hibernate.metamodel.source.annotations.attribute.state.relational.ColumnRelationalStateImpl

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.