List of usage examples for org.hibernate.boot.model.naming Identifier getCanonicalName
public String getCanonicalName()
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; }