Logical names provide an additional level of indirection between the mappings
and the database schema, and a PhysicalNamingStrategy even allows the
use of more "natural" naming within the mappings in cases where the relational
schema features especially inelegant legacy naming conventions. For example,
it could shield the mappings from old-fashioned practices like prefixing table
names with TBL_.
Note, however, that handwritten native SQL must be written in terms of physical names, so the abstraction here is in some sense "incomplete".
A PhysicalNamingStrategy may be selected using the configuration property
hibernate.physical_naming_strategy.
ImplicitNamingStrategy, org.hibernate.cfg.Configuration#setPhysicalNamingStrategy(PhysicalNamingStrategy) , org.hibernate.boot.MetadataBuilder#applyPhysicalNamingStrategy(PhysicalNamingStrategy) , org.hibernate.cfg.AvailableSettings#PHYSICAL_NAMING_STRATEGY
| Modifier and Type | Method and Description |
|---|---|
| public Identifier | toPhysicalCatalogName(Identifier logicalName, JdbcEnvironment jdbcEnvironment)
Determine the physical catalog name from the given logical name |
| public Identifier | toPhysicalColumnName(Identifier logicalName, JdbcEnvironment jdbcEnvironment)
Determine the physical column name from the given logical name |
| public Identifier | toPhysicalSchemaName(Identifier logicalName, JdbcEnvironment jdbcEnvironment)
Determine the physical schema name from the given logical name |
| public Identifier | toPhysicalSequenceName(Identifier logicalName, JdbcEnvironment jdbcEnvironment)
Determine the physical sequence name from the given logical name |
| public Identifier | toPhysicalTableName(Identifier logicalName, JdbcEnvironment jdbcEnvironment)
Determine the physical table name from the given logical name |
| public default Identifier | toPhysicalTypeName(Identifier logicalName, JdbcEnvironment jdbcEnvironment)
Determine the physical UDT type name from the given logical name |
| toPhysicalCatalogName | back to summary |
|---|---|
| public Identifier toPhysicalCatalogName(Identifier logicalName, JdbcEnvironment jdbcEnvironment) Determine the physical catalog name from the given logical name | |
| toPhysicalColumnName | back to summary |
|---|---|
| public Identifier toPhysicalColumnName(Identifier logicalName, JdbcEnvironment jdbcEnvironment) Determine the physical column name from the given logical name | |
| toPhysicalSchemaName | back to summary |
|---|---|
| public Identifier toPhysicalSchemaName(Identifier logicalName, JdbcEnvironment jdbcEnvironment) Determine the physical schema name from the given logical name | |
| toPhysicalSequenceName | back to summary |
|---|---|
| public Identifier toPhysicalSequenceName(Identifier logicalName, JdbcEnvironment jdbcEnvironment) Determine the physical sequence name from the given logical name | |
| toPhysicalTableName | back to summary |
|---|---|
| public Identifier toPhysicalTableName(Identifier logicalName, JdbcEnvironment jdbcEnvironment) Determine the physical table name from the given logical name | |
| toPhysicalTypeName | back to summary |
|---|---|
| public default Identifier toPhysicalTypeName(Identifier logicalName, JdbcEnvironment jdbcEnvironment) Determine the physical UDT type name from the given logical name | |