Examples of addCheckConstraint()


Examples of org.hibernate.mapping.Table.addCheckConstraint()

    joinedSubclass.createPrimaryKey();
    joinedSubclass.createForeignKey();

    // CHECK
    Attribute chNode = node.attribute( "check" );
    if ( chNode != null ) mytable.addCheckConstraint( chNode.getValue() );

    // properties
    createClassProperties( node, joinedSubclass, mappings, inheritedMetas );

  }
View Full Code Here

Examples of org.hibernate.mapping.Table.addCheckConstraint()

    Attribute whereNode = node.attribute( "where" );
    if ( whereNode != null ) entity.setWhere( whereNode.getValue() );

    // CHECK
    Attribute chNode = node.attribute( "check" );
    if ( chNode != null ) table.addCheckConstraint( chNode.getValue() );

    // POLYMORPHISM
    Attribute polyNode = node.attribute( "polymorphism" );
    entity.setExplicitPolymorphism( ( polyNode != null )
      && polyNode.getValue().equals( "explicit" ) );
View Full Code Here

Examples of org.hibernate.mapping.Table.addCheckConstraint()

    joinedSubclass.createPrimaryKey();
    joinedSubclass.createForeignKey();

    // CHECK
    Attribute chNode = node.attribute( "check" );
    if ( chNode != null ) mytable.addCheckConstraint( chNode.getValue() );

    // properties
    createClassProperties( node, joinedSubclass, mappings, inheritedMetas );

  }
View Full Code Here

Examples of org.hibernate.mapping.Table.addCheckConstraint()

    if ( uniqueConstraints != null && uniqueConstraints.size() > 0 ) {
      mappings.addUniqueConstraintHolders( table, uniqueConstraints );
    }

    if ( constraints != null ) table.addCheckConstraint( constraints );

    // logicalName is null if we are in the second pass
    final String logicalName = nameSource.getLogicalName();
    if ( logicalName != null ) {
      mappings.addTableBinding( schema, catalog, logicalName, realTableName, denormalizedSuperTable );
View Full Code Here

Examples of org.hibernate.mapping.Table.addCheckConstraint()

      );
    }
    if ( uniqueConstraints != null && uniqueConstraints.size() > 0 ) {
      mappings.addUniqueConstraints( table, uniqueConstraints );
    }
    if ( constraints != null ) table.addCheckConstraint( constraints );
    //logicalName is null if we are in the second pass
    if ( logicalName != null ) {
      mappings.addTableBinding( schema, catalog, logicalName, realTableName, denormalizedSuperTable );
    }
    return table;
View Full Code Here

Examples of org.hibernate.mapping.Table.addCheckConstraint()

      );
    }
    if ( uniqueConstraints != null && uniqueConstraints.size() > 0 ) {
      mappings.addUniqueConstraints( table, uniqueConstraints );
    }
    if ( constraints != null ) table.addCheckConstraint( constraints );
    //logicalName is null if we are in the second pass
    if ( logicalName != null ) {
      mappings.addTableBinding( schema, catalog, logicalName, realTableName, denormalizedSuperTable );
    }
    return table;
View Full Code Here

Examples of org.hibernate.mapping.Table.addCheckConstraint()

    if ( uniqueConstraints != null && uniqueConstraints.size() > 0 ) {
      mappings.addUniqueConstraintHolders( table, uniqueConstraints );
    }

    if ( constraints != null ) table.addCheckConstraint( constraints );

    // logicalName is null if we are in the second pass
    final String logicalName = nameSource.getLogicalName();
    if ( logicalName != null ) {
      mappings.addTableBinding( schema, catalog, logicalName, realTableName, denormalizedSuperTable );
View Full Code Here

Examples of org.hibernate.mapping.Table.addCheckConstraint()

      );
    }
    if ( uniqueConstraints != null && uniqueConstraints.size() > 0 ) {
      mappings.addUniqueConstraints( table, uniqueConstraints );
    }
    if ( constraints != null ) table.addCheckConstraint( constraints );
    //logicalName is null if we are in the second pass
    if ( logicalName != null ) {
      mappings.addTableBinding( schema, catalog, logicalName, realTableName, denormalizedSuperTable );
    }
    return table;
View Full Code Here

Examples of org.hibernate.metamodel.relational.Table.addCheckConstraint()

    AnnotationInstance checkAnnotation = JandexHelper.getSingleAnnotation(
        entityClass.getClassInfo(), HibernateDotNames.CHECK
    );
    if ( checkAnnotation != null ) {
      table.addCheckConstraint( checkAnnotation.value( "constraints" ).asString() );
    }
  }

  private void bindId(EntityBinding entityBinding) {
    switch ( entityClass.getIdType() ) {
View Full Code Here

Examples of org.lealone.dbobject.table.Column.addCheckConstraint()

            if (selectivity != Constants.SELECTIVITY_DEFAULT) {
                column.setSelectivity(selectivity);
            }
            Expression checkConstraint = templateColumn.getCheckConstraint(session, columnName);
            if (checkConstraint != null) {
                column.addCheckConstraint(session, checkConstraint);
            }
        }
        column.setComment(comment);
        column.setOriginalSQL(original);
        return column;
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.