Class PhysicalNamingStrategySnakeCaseImpl
java.lang.Object
org.hibernate.boot.model.naming.PhysicalNamingStrategySnakeCaseImpl
- All Implemented Interfaces:
PhysicalNamingStrategy
- Direct Known Subclasses:
CamelCaseToUnderscoresNamingStrategy
Converts
camelCase or MixedCase logical names to snake_case.
This strategy leaves quoted identifiers alone. If quoted identifiers should also be processed, then this class may be extended the implement the required behavior. For example:
public class AlwaysSnakeEverythingStrategy extends PhysicalNamingStrategySnakeCaseImpl {
@Override
protected Identifier quotedIdentifier(Identifier quotedName) {
return super.unquotedIdentifier( quotedName ).quoted();
}
}
- Since:
- 7.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IdentifierquotedIdentifier(Identifier quotedName) toPhysicalCatalogName(Identifier logicalName, JdbcEnvironment jdbcEnvironment) Determine the physical catalog name from the given logical nametoPhysicalColumnName(Identifier logicalName, JdbcEnvironment jdbcEnvironment) Determine the physical column name from the given logical nametoPhysicalSchemaName(Identifier logicalName, JdbcEnvironment jdbcEnvironment) Determine the physical schema name from the given logical nametoPhysicalSequenceName(Identifier logicalName, JdbcEnvironment jdbcEnvironment) Determine the physical sequence name from the given logical nametoPhysicalTableName(Identifier logicalName, JdbcEnvironment jdbcEnvironment) Determine the physical table name from the given logical nameprotected IdentifierunquotedIdentifier(Identifier name) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PhysicalNamingStrategy
toPhysicalTypeName
-
Constructor Details
-
PhysicalNamingStrategySnakeCaseImpl
public PhysicalNamingStrategySnakeCaseImpl()
-
-
Method Details
-
toPhysicalCatalogName
Description copied from interface:PhysicalNamingStrategyDetermine the physical catalog name from the given logical name- Specified by:
toPhysicalCatalogNamein interfacePhysicalNamingStrategy
-
toPhysicalSchemaName
Description copied from interface:PhysicalNamingStrategyDetermine the physical schema name from the given logical name- Specified by:
toPhysicalSchemaNamein interfacePhysicalNamingStrategy
-
toPhysicalTableName
Description copied from interface:PhysicalNamingStrategyDetermine the physical table name from the given logical name- Specified by:
toPhysicalTableNamein interfacePhysicalNamingStrategy
-
toPhysicalSequenceName
Description copied from interface:PhysicalNamingStrategyDetermine the physical sequence name from the given logical name- Specified by:
toPhysicalSequenceNamein interfacePhysicalNamingStrategy
-
toPhysicalColumnName
Description copied from interface:PhysicalNamingStrategyDetermine the physical column name from the given logical name- Specified by:
toPhysicalColumnNamein interfacePhysicalNamingStrategy
-
unquotedIdentifier
-
quotedIdentifier
-