private void configSchema() {
    TableNamingStrategy namingStrategy = null;
    if (getNamingStrategy() instanceof RailsNamingStrategy) {
      namingStrategy = ((RailsNamingStrategy) getNamingStrategy()).getTableNamingStrategy();
    }

    if (null == namingStrategy) return;
    else {
      // Update SeqGenerator's static variable.
      // Because generator is init by hibernate,cannot inject namingStrategy.
      TableSeqGenerator.namingStrategy = namingStrategy;
    }

    if (namingStrategy.isMultiSchema()) {
      for (PersistentClass clazz : classes.values()) {
        if (Strings.isEmpty(clazz.getTable().getSchema())) {
          String schema = namingStrategy.getSchema(clazz.getEntityName());
          if (null != schema) clazz.getTable().setSchema(schema);
        }
      }

      for (Collection collection : collections.values()) {
        final Table table = collection.getCollectionTable();
        if (null == table) continue;
        if (Strings.isBlank(table.getSchema())) {
          String schema = namingStrategy.getSchema(collection.getOwnerEntityName());
          if (null != schema) table.setSchema(schema);
        }
      }
    }
  }
private void configSchema ( ) { TableNamingStrategy namingStrategy = null ; if ( getNamingStrategy ( ) instanceof RailsNamingStrategy ) { namingStrategy = ( ( RailsNamingStrategy ) getNamingStrategy ( ) ) . getTableNamingStrategy ( ) ; } if ( null == namingStrategy ) return ; else { TableSeqGenerator . namingStrategy = namingStrategy ; } if ( namingStrategy . isMultiSchema ( ) ) { for ( PersistentClass clazz : classes . values ( ) ) { if ( Strings . isEmpty ( clazz . getTable ( ) . getSchema ( ) ) ) { String schema = namingStrategy . getSchema ( clazz . getEntityName ( ) ) ; if ( null != schema ) clazz . getTable ( ) . setSchema ( schema ) ; } } for ( Collection collection : collections . values ( ) ) { final Table table = collection . getCollectionTable ( ) ; if ( null == table ) continue ; if ( Strings . isBlank ( table . getSchema ( ) ) ) { String schema = namingStrategy . getSchema ( collection . getOwnerEntityName ( ) ) ; if ( null != schema ) table . setSchema ( schema ) ; } } } }
Config table's schema by TableNamingStrategy.<br>

@see org.beangle.orm.hibernate.RailsNamingStrategy