Example usage for org.hibernate.boot.spi InFlightMetadataCollector addTableNameBinding

List of usage examples for org.hibernate.boot.spi InFlightMetadataCollector addTableNameBinding

Introduction

In this page you can find the example usage for org.hibernate.boot.spi InFlightMetadataCollector addTableNameBinding.

Prototype

void addTableNameBinding(String schema, String catalog, String logicalName, String realTableName,
            Table denormalizedSuperTable);

Source Link

Usage

From source file:org.grails.orm.hibernate.cfg.GrailsDomainBinder.java

License:Apache License

protected String getJoinedSubClassTableName(HibernatePersistentEntity sub, PersistentClass model,
        Table denormalizedSuperTable, InFlightMetadataCollector mappings, String sessionFactoryBeanName) {

    String logicalTableName = unqualify(model.getEntityName());
    String physicalTableName = getTableName(sub, sessionFactoryBeanName);

    String schemaName = getSchemaName(mappings);
    String catalogName = getCatalogName(mappings);

    mappings.addTableNameBinding(schemaName, catalogName, logicalTableName, physicalTableName,
            denormalizedSuperTable);/*from   w ww  .j  a v a2  s . c  om*/
    return physicalTableName;
}