Class PhysicalNamingStrategySnakeCaseImpl

java.lang.Object
org.hibernate.boot.model.naming.PhysicalNamingStrategySnakeCaseImpl
All Implemented Interfaces:
PhysicalNamingStrategy
Direct Known Subclasses:
CamelCaseToUnderscoresNamingStrategy

public class PhysicalNamingStrategySnakeCaseImpl extends Object implements PhysicalNamingStrategy
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