Example usage for org.hibernate.boot.model.naming Identifier getCanonicalName

List of usage examples for org.hibernate.boot.model.naming Identifier getCanonicalName

Introduction

In this page you can find the example usage for org.hibernate.boot.model.naming Identifier getCanonicalName.

Prototype

public String getCanonicalName() 

Source Link

Usage

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

License:Apache License

private String getSchemaName(InFlightMetadataCollector mappings) {
    Identifier schema = mappings.getDatabase().getDefaultNamespace().getName().getSchema();
    if (schema != null) {
        return schema.getCanonicalName();
    }/*from   ww w  .j  a  v a  2  s  . c  om*/
    return null;
}

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

License:Apache License

private String getCatalogName(InFlightMetadataCollector mappings) {
    Identifier catalog = mappings.getDatabase().getDefaultNamespace().getName().getCatalog();
    if (catalog != null) {
        return catalog.getCanonicalName();
    }/*from w w  w.j  a v a2 s  .c  o  m*/
    return null;
}