Examples of TableSpecification


Examples of org.hibernate.metamodel.relational.TableSpecification

    isNullableTable = new boolean[joinSpan];
    keyColumnNames = new String[joinSpan][];

    // TODO: fix when EntityBinhding.getRootEntityBinding() exists (HHH-6337)
    //final Table table = entityBinding.getRootEntityBinding().getPrimaryTable();
    final TableSpecification table = entityBinding.getPrimaryTable();
    qualifiedTableNames[0] = table.getQualifiedName( factory.getDialect() );
    isInverseTable[0] = false;
    isNullableTable[0] = false;
    keyColumnNames[0] = getIdentifierColumnNames();
    cascadeDeleteEnabled = new boolean[joinSpan];
View Full Code Here

Examples of org.hibernate.metamodel.relational.TableSpecification

    qualifiedTableNames = new String[joinSpan];
    isInverseTable = new boolean[joinSpan];
    isNullableTable = new boolean[joinSpan];
    keyColumnNames = new String[joinSpan][];

    final TableSpecification table = entityBinding.getPrimaryTable();
    qualifiedTableNames[0] = table.getQualifiedName( factory.getDialect() );
    isInverseTable[0] = false;
    isNullableTable[0] = false;
    keyColumnNames[0] = getIdentifierColumnNames();
    cascadeDeleteEnabled = new boolean[joinSpan];
View Full Code Here

Examples of org.hibernate.metamodel.relational.TableSpecification

      boolean mutable,
      boolean nullable) {
    final boolean naturalId = uniqueKey != null;

    final String entiytName = entityBinding.getEntity().getName();
    final TableSpecification tabe = entityBinding.getBaseTable();

    AttributeBinding attributeBinding = null;

    Iterator iter = entityElement.elementIterator();
    while ( iter.hasNext() ) {
View Full Code Here

Examples of org.hibernate.metamodel.relational.TableSpecification

        JPADotNames.TABLE
    );
    if ( tableAnnotation == null ) {
      return;
    }
    TableSpecification table = entityBinding.getBaseTable();
    bindUniqueConstraints( tableAnnotation, table );
  }
View Full Code Here

Examples of org.hibernate.metamodel.relational.TableSpecification

      boolean mutable,
      boolean nullable) {
    final boolean naturalId = uniqueKey != null;

    final String entiytName = entityBinding.getEntity().getName();
    final TableSpecification tabe = entityBinding.getBaseTable();

    AttributeBinding attributeBinding = null;
    for ( Object attribute : entityClazz.getPropertyOrManyToOneOrOneToOne() ) {
      if ( XMLBagElement.class.isInstance( attribute ) ) {
        XMLBagElement collection = XMLBagElement.class.cast( attribute );
View Full Code Here

Examples of org.hibernate.metamodel.relational.TableSpecification

    isNullableTable = new boolean[joinSpan];
    keyColumnNames = new String[joinSpan][];

    // TODO: fix when EntityBinhding.getRootEntityBinding() exists (HHH-6337)
    //final Table table = entityBinding.getRootEntityBinding().getBaseTable();
    final TableSpecification table = entityBinding.getBaseTable();
    qualifiedTableNames[0] = table.getQualifiedName( factory.getDialect() );
    isInverseTable[0] = false;
    isNullableTable[0] = false;
    keyColumnNames[0] = getIdentifierColumnNames();
    cascadeDeleteEnabled = new boolean[joinSpan];
View Full Code Here

Examples of org.hibernate.metamodel.relational.TableSpecification

    qualifiedTableNames = new String[joinSpan];
    isInverseTable = new boolean[joinSpan];
    isNullableTable = new boolean[joinSpan];
    keyColumnNames = new String[joinSpan][];

    final TableSpecification table = entityBinding.getPrimaryTable();
    qualifiedTableNames[0] = table.getQualifiedName( factory.getDialect() );
    isInverseTable[0] = false;
    isNullableTable[0] = false;
    keyColumnNames[0] = getIdentifierColumnNames();
    cascadeDeleteEnabled = new boolean[joinSpan];
View Full Code Here

Examples of org.hibernate.metamodel.relational.TableSpecification

    List<SimpleValueBinding> valueBindings = new ArrayList<SimpleValueBinding>();

    if ( relationalValueSourceContainer.relationalValueSources().size() > 0 ) {
      for ( RelationalValueSource valueSource : relationalValueSourceContainer.relationalValueSources() ) {
        final TableSpecification table = attributeBinding.getEntityBinding()
            .getTable( valueSource.getContainingTableName() );

        if ( ColumnSource.class.isInstance( valueSource ) ) {
          final ColumnSource columnSource = ColumnSource.class.cast( valueSource );
          final Column column = table.locateOrCreateColumn( columnSource.getName() );
          column.setNullable( columnSource.isNullable() );
          column.setDefaultValue( columnSource.getDefaultValue() );
          column.setSqlType( columnSource.getSqlType() );
          column.setSize( columnSource.getSize() );
          column.setDatatype( columnSource.getDatatype() );
          column.setReadFragment( columnSource.getReadFragment() );
          column.setWriteFragment( columnSource.getWriteFragment() );
          column.setUnique( columnSource.isUnique() );
          column.setCheckCondition( columnSource.getCheckCondition() );
          column.setComment( columnSource.getComment() );
          valueBindings.add(
              new SimpleValueBinding(
                  column,
                  columnSource.isIncludedInInsert(),
                  columnSource.isIncludedInUpdate()
              )
          );
        }
        else {
          valueBindings.add(
              new SimpleValueBinding(
                  table.locateOrCreateDerivedValue( ( (DerivedValueSource) valueSource ).getExpression() )
              )
          );
        }
      }
    }
View Full Code Here

Examples of org.hibernate.metamodel.relational.TableSpecification

    qualifiedTableNames = new String[joinSpan];
    isInverseTable = new boolean[joinSpan];
    isNullableTable = new boolean[joinSpan];
    keyColumnNames = new String[joinSpan][];

    final TableSpecification table = entityBinding.getPrimaryTable();
    qualifiedTableNames[0] = table.getQualifiedName( factory.getDialect() );
    isInverseTable[0] = false;
    isNullableTable[0] = false;
    keyColumnNames[0] = getIdentifierColumnNames();
    cascadeDeleteEnabled = new boolean[joinSpan];
View Full Code Here

Examples of org.hibernate.metamodel.relational.TableSpecification

    isNullableTable = new boolean[joinSpan];
    keyColumnNames = new String[joinSpan][];

    // TODO: fix when EntityBinhding.getRootEntityBinding() exists (HHH-6337)
    //final Table table = entityBinding.getRootEntityBinding().getBaseTable();
    final TableSpecification table = entityBinding.getBaseTable();
    qualifiedTableNames[0] = table.getQualifiedName( factory.getDialect() );
    isInverseTable[0] = false;
    isNullableTable[0] = false;
    keyColumnNames[0] = getIdentifierColumnNames();
    cascadeDeleteEnabled = new boolean[joinSpan];
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.