Examples of HbmSimpleValueRelationalStateContainer


Examples of org.hibernate.metamodel.source.hbm.state.relational.HbmSimpleValueRelationalStateContainer

    );

    // boolean (true here) indicates that by default column names should be guessed
    ValueRelationalState relationalState =
        convertToSimpleValueRelationalStateIfPossible(
            new HbmSimpleValueRelationalStateContainer(
                bindingContext,
                true,
                property
            )
        );
View Full Code Here

Examples of org.hibernate.metamodel.source.hbm.state.relational.HbmSimpleValueRelationalStateContainer

        getBindingContext(),
        entityBinding.getMetaAttributeContext(),
        id
    );
    // boolean (true here) indicates that by default column names should be guessed
    HbmSimpleValueRelationalStateContainer relationalStateContainer = new HbmSimpleValueRelationalStateContainer(
        getBindingContext(), true, id
    );
    if ( relationalStateContainer.getRelationalStates().size() > 1 ) {
      throw new MappingException( "ID is expected to be a single column, but has more than 1 value" );
    }

    Attribute attribute = entityBinding.getEntity().getOrCreateSingularAttribute( bindingState.getAttributeName() );
    entityBinding.makeSimpleIdAttributeBinding( attribute )
        .initialize( bindingState )
        .initialize( relationalStateContainer.getRelationalStates().get( 0 ) );

    // if ( propertyName == null || entity.getPojoRepresentation() == null ) {
    // bindSimpleValue( idNode, id, false, RootClass.DEFAULT_IDENTIFIER_COLUMN_NAME, mappings );
    // if ( !id.isTypeSpecified() ) {
    // throw new MappingException( "must specify an identifier type: " + entity.getEntityName()
View Full Code Here

Examples of org.hibernate.metamodel.source.hbm.state.relational.HbmSimpleValueRelationalStateContainer

        xmlEntityClazz
    );

    // boolean (true here) indicates that by default column names should be guessed
    ValueRelationalState relationalState = convertToSimpleValueRelationalStateIfPossible(
        new HbmSimpleValueRelationalStateContainer(
            getBindingContext(),
            true,
            xmlEntityClazz.getDiscriminator()
        )
    );
View Full Code Here

Examples of org.hibernate.metamodel.source.hbm.state.relational.HbmSimpleValueRelationalStateContainer

        );

    // boolean (true here) indicates that by default column names should be guessed
    ValueRelationalState relationalState =
        convertToSimpleValueRelationalStateIfPossible(
            new HbmSimpleValueRelationalStateContainer(
                getBindingContext(),
                true,
                version
            )
        );
View Full Code Here

Examples of org.hibernate.metamodel.source.hbm.state.relational.HbmSimpleValueRelationalStateContainer

    // relational model has not been bound yet
    // boolean (true here) indicates that by default column names should be guessed
    ValueRelationalState relationalState =
        convertToSimpleValueRelationalStateIfPossible(
            new HbmSimpleValueRelationalStateContainer(
                getBindingContext(),
                true,
                timestamp
            )
        );
View Full Code Here

Examples of org.hibernate.metamodel.source.hbm.state.relational.HbmSimpleValueRelationalStateContainer

    );

    // boolean (true here) indicates that by default column names should be guessed
    ValueRelationalState relationalState =
        convertToSimpleValueRelationalStateIfPossible(
            new HbmSimpleValueRelationalStateContainer(
                bindingContext,
                true,
                property
            )
        );
View Full Code Here

Examples of org.hibernate.metamodel.source.hbm.state.relational.HbmSimpleValueRelationalStateContainer

        getBindingContext(),
        entityBinding.getMetaAttributeContext(),
        id
    );
    // boolean (true here) indicates that by default column names should be guessed
    HbmSimpleValueRelationalStateContainer relationalStateContainer = new HbmSimpleValueRelationalStateContainer(
        getBindingContext(), true, id
    );
    if ( relationalStateContainer.getRelationalStates().size() > 1 ) {
      throw new MappingException( "ID is expected to be a single column, but has more than 1 value" );
    }

    entityBinding.getEntity().getOrCreateSingularAttribute( bindingState.getAttributeName() );
    entityBinding.makeSimpleIdAttributeBinding( bindingState.getAttributeName() )
        .initialize( bindingState )
        .initialize( relationalStateContainer.getRelationalStates().get( 0 ) );

    // if ( propertyName == null || entity.getPojoRepresentation() == null ) {
    // bindSimpleValue( idNode, id, false, RootClass.DEFAULT_IDENTIFIER_COLUMN_NAME, mappings );
    // if ( !id.isTypeSpecified() ) {
    // throw new MappingException( "must specify an identifier type: " + entity.getEntityName()
View Full Code Here

Examples of org.hibernate.metamodel.source.hbm.state.relational.HbmSimpleValueRelationalStateContainer

            xmlEntityClazz
    );

    // boolean (true here) indicates that by default column names should be guessed
    ValueRelationalState relationalState = convertToSimpleValueRelationalStateIfPossible(
        new HbmSimpleValueRelationalStateContainer(
            getBindingContext(),
            true,
            xmlEntityClazz.getDiscriminator()
        )
    );
View Full Code Here

Examples of org.hibernate.metamodel.source.hbm.state.relational.HbmSimpleValueRelationalStateContainer

        );

    // boolean (true here) indicates that by default column names should be guessed
    ValueRelationalState relationalState =
        convertToSimpleValueRelationalStateIfPossible(
            new HbmSimpleValueRelationalStateContainer(
                getBindingContext(),
                true,
                version
            )
        );
View Full Code Here

Examples of org.hibernate.metamodel.source.hbm.state.relational.HbmSimpleValueRelationalStateContainer

    // relational model has not been bound yet
    // boolean (true here) indicates that by default column names should be guessed
    ValueRelationalState relationalState =
        convertToSimpleValueRelationalStateIfPossible(
            new HbmSimpleValueRelationalStateContainer(
                getBindingContext(),
                true,
                timestamp
            )
        );
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.