Package org.hibernate.metamodel.relational

Examples of org.hibernate.metamodel.relational.Schema.createTable()


  private void bindTable(EntityBinding entityBinding) {
    final Schema schema = meta.getDatabase().getSchema( schemaName );
    final Identifier tableName = Identifier.toIdentifier( configuredClass.getPrimaryTableName() );
    org.hibernate.metamodel.relational.Table table = schema.getTable( tableName );
    if ( table == null ) {
      table = schema.createTable( tableName );
    }
    entityBinding.setBaseTable( table );

    AnnotationInstance checkAnnotation = JandexHelper.getSingleAnnotation(
        configuredClass.getClassInfo(), HibernateDotNames.CHECK
View Full Code Here


    }
    else {
      final Identifier tableName = Identifier.toIdentifier( getClassTableName( xmlClazz, entityBinding, null ) );
      org.hibernate.metamodel.relational.Table table = schema.getTable( tableName );
      if ( table == null ) {
        table = schema.createTable( tableName );
      }
      entityBinding.setBaseTable( table );
      String comment = xmlClazz.getComment();
      if ( comment != null ) {
        table.addComment( comment.trim() );
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.