Package org.hibernate.metamodel.relational

Examples of org.hibernate.metamodel.relational.Value$JdbcCodes


    }

    // VERSION

    if ( entityBinding.isVersioned() ) {
      final Value versioningValue = entityBinding.getHierarchyDetails().getVersioningAttributeBinding().getValue();
      if ( ! org.hibernate.metamodel.relational.Column.class.isInstance( versioningValue ) ) {
        throw new AssertionFailure( "Bad versioning attribute binding : " + versioningValue );
      }
      org.hibernate.metamodel.relational.Column versionColumn = org.hibernate.metamodel.relational.Column.class.cast( versioningValue );
      versionColumnName = versionColumn.getColumnName().encloseInQuotesIfQuoted( factory.getDialect() );
View Full Code Here


  private void pushHibernateTypeInformationDownIfNeeded(SingularAttributeBinding attributeBinding, Type resolvedHibernateType) {

    final HibernateTypeDescriptor hibernateTypeDescriptor = attributeBinding.getHibernateTypeDescriptor();
    final SingularAttribute singularAttribute = SingularAttribute.class.cast( attributeBinding.getAttribute() );
    final Value value = attributeBinding.getValue();
    if ( ! singularAttribute.isTypeResolved() && hibernateTypeDescriptor.getJavaTypeName() != null ) {
      singularAttribute.resolveType( metadata.makeJavaType( hibernateTypeDescriptor.getJavaTypeName() ) );
    }

    // sql type information ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
View Full Code Here

    }

    // VERSION

    if ( entityBinding.isVersioned() ) {
      final Value versioningValue = entityBinding.getHierarchyDetails().getVersioningAttributeBinding().getValue();
      if ( ! org.hibernate.metamodel.relational.Column.class.isInstance( versioningValue ) ) {
        throw new AssertionFailure( "Bad versioning attribute binding : " + versioningValue );
      }
      org.hibernate.metamodel.relational.Column versionColumn = org.hibernate.metamodel.relational.Column.class.cast( versioningValue );
      versionColumnName = versionColumn.getColumnName().encloseInQuotesIfQuoted( factory.getDialect() );
View Full Code Here

    }

    // VERSION

    if ( entityBinding.isVersioned() ) {
      final Value versioningValue = entityBinding.getHierarchyDetails().getVersioningAttributeBinding().getValue();
      if ( ! org.hibernate.metamodel.relational.Column.class.isInstance( versioningValue ) ) {
        throw new AssertionFailure( "Bad versioning attribute binding : " + versioningValue );
      }
      org.hibernate.metamodel.relational.Column versionColumn = org.hibernate.metamodel.relational.Column.class.cast( versioningValue );
      versionColumnName = versionColumn.getColumnName().encloseInQuotesIfQuoted( factory.getDialect() );
View Full Code Here

    }

    // VERSION

    if ( entityBinding.isVersioned() ) {
      final Value versioningValue = entityBinding.getHierarchyDetails().getVersioningAttributeBinding().getValue();
      if ( ! org.hibernate.metamodel.relational.Column.class.isInstance( versioningValue ) ) {
        throw new AssertionFailure( "Bad versioning attribute binding : " + versioningValue );
      }
      org.hibernate.metamodel.relational.Column versionColumn = org.hibernate.metamodel.relational.Column.class.cast( versioningValue );
      versionColumnName = versionColumn.getColumnName().encloseInQuotesIfQuoted( factory.getDialect() );
View Full Code Here

  private void pushHibernateTypeInformationDownIfNeeded(SingularAttributeBinding attributeBinding, Type resolvedHibernateType) {

    final HibernateTypeDescriptor hibernateTypeDescriptor = attributeBinding.getHibernateTypeDescriptor();
    final SingularAttribute singularAttribute = SingularAttribute.class.cast( attributeBinding.getAttribute() );
    final Value value = attributeBinding.getValue();
    if ( ! singularAttribute.isTypeResolved() && hibernateTypeDescriptor.getJavaTypeName() != null ) {
      singularAttribute.resolveType( metadata.makeJavaType( hibernateTypeDescriptor.getJavaTypeName() ) );
    }

    // sql type information ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
View Full Code Here

    }

    // VERSION

    if ( entityBinding.isVersioned() ) {
      final Value versioningValue = entityBinding.getHierarchyDetails().getVersioningAttributeBinding().getValue();
      if ( ! org.hibernate.metamodel.relational.Column.class.isInstance( versioningValue ) ) {
        throw new AssertionFailure( "Bad versioning attribute binding : " + versioningValue );
      }
      org.hibernate.metamodel.relational.Column versionColumn = org.hibernate.metamodel.relational.Column.class.cast( versioningValue );
      versionColumnName = versionColumn.getColumnName().encloseInQuotesIfQuoted( factory.getDialect() );
View Full Code Here

    }

    // VERSION

    if ( entityBinding.isVersioned() ) {
      final Value versioningValue = entityBinding.getHierarchyDetails().getVersioningAttributeBinding().getValue();
      if ( ! org.hibernate.metamodel.relational.Column.class.isInstance( versioningValue ) ) {
        throw new AssertionFailure( "Bad versioning attribute binding : " + versioningValue );
      }
      org.hibernate.metamodel.relational.Column versionColumn = org.hibernate.metamodel.relational.Column.class.cast( versioningValue );
      versionColumnName = versionColumn.getColumnName().encloseInQuotesIfQuoted( factory.getDialect() );
View Full Code Here

    }

    // VERSION

    if ( entityBinding.isVersioned() ) {
      final Value versioningValue = entityBinding.getHierarchyDetails().getVersioningAttributeBinding().getValue();
      if ( ! org.hibernate.metamodel.relational.Column.class.isInstance( versioningValue ) ) {
        throw new AssertionFailure( "Bad versioning attribute binding : " + versioningValue );
      }
      org.hibernate.metamodel.relational.Column versionColumn = org.hibernate.metamodel.relational.Column.class.cast( versioningValue );
      versionColumnName = versionColumn.getColumnName().encloseInQuotesIfQuoted( factory.getDialect() );
View Full Code Here

    }

    // VERSION

    if ( entityBinding.isVersioned() ) {
      final Value versioningValue = entityBinding.getHierarchyDetails().getVersioningAttributeBinding().getValue();
      if ( ! org.hibernate.metamodel.relational.Column.class.isInstance( versioningValue ) ) {
        throw new AssertionFailure( "Bad versioning attribute binding : " + versioningValue );
      }
      org.hibernate.metamodel.relational.Column versionColumn = org.hibernate.metamodel.relational.Column.class.cast( versioningValue );
      versionColumnName = versionColumn.getColumnName().encloseInQuotesIfQuoted( factory.getDialect() );
View Full Code Here

TOP

Related Classes of org.hibernate.metamodel.relational.Value$JdbcCodes

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.