Class SpringPhysicalNamingStrategy
- java.lang.Object
- org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
- All Implemented Interfaces:
org.hibernate.boot.model.naming.PhysicalNamingStrategy
public class SpringPhysicalNamingStrategy extends Object implements org.hibernate.boot.model.naming.PhysicalNamingStrategy
HibernatePhysicalNamingStrategy
that follows Spring recommended naming conventions.- Since:
- 1.4.0
Constructor Summary
Constructors Constructor Description SpringPhysicalNamingStrategy()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.hibernate.boot.model.naming.Identifier
getIdentifier(String name, boolean quoted, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment)
Get an identifier for the specified details.protected boolean
isCaseInsensitive(org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment)
Specify whether the database is case sensitive.org.hibernate.boot.model.naming.Identifier
toPhysicalCatalogName(org.hibernate.boot.model.naming.Identifier name, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment)
org.hibernate.boot.model.naming.Identifier
toPhysicalColumnName(org.hibernate.boot.model.naming.Identifier name, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment)
org.hibernate.boot.model.naming.Identifier
toPhysicalSchemaName(org.hibernate.boot.model.naming.Identifier name, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment)
org.hibernate.boot.model.naming.Identifier
toPhysicalSequenceName(org.hibernate.boot.model.naming.Identifier name, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment)
org.hibernate.boot.model.naming.Identifier
toPhysicalTableName(org.hibernate.boot.model.naming.Identifier name, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment)
Constructor Detail
SpringPhysicalNamingStrategy
public SpringPhysicalNamingStrategy()
Method Detail
toPhysicalCatalogName
public org.hibernate.boot.model.naming.Identifier toPhysicalCatalogName(org.hibernate.boot.model.naming.Identifier name, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment)
- Specified by:
toPhysicalCatalogName
in interfaceorg.hibernate.boot.model.naming.PhysicalNamingStrategy
toPhysicalSchemaName
public org.hibernate.boot.model.naming.Identifier toPhysicalSchemaName(org.hibernate.boot.model.naming.Identifier name, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment)
- Specified by:
toPhysicalSchemaName
in interfaceorg.hibernate.boot.model.naming.PhysicalNamingStrategy
toPhysicalTableName
public org.hibernate.boot.model.naming.Identifier toPhysicalTableName(org.hibernate.boot.model.naming.Identifier name, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment)
- Specified by:
toPhysicalTableName
in interfaceorg.hibernate.boot.model.naming.PhysicalNamingStrategy
toPhysicalSequenceName
public org.hibernate.boot.model.naming.Identifier toPhysicalSequenceName(org.hibernate.boot.model.naming.Identifier name, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment)
- Specified by:
toPhysicalSequenceName
in interfaceorg.hibernate.boot.model.naming.PhysicalNamingStrategy
toPhysicalColumnName
public org.hibernate.boot.model.naming.Identifier toPhysicalColumnName(org.hibernate.boot.model.naming.Identifier name, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment)
- Specified by:
toPhysicalColumnName
in interfaceorg.hibernate.boot.model.naming.PhysicalNamingStrategy
getIdentifier
protected org.hibernate.boot.model.naming.Identifier getIdentifier(String name, boolean quoted, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment)
Get an identifier for the specified details. By default this method will return an identifier with the name adapted based on the result ofisCaseInsensitive(JdbcEnvironment)
- Parameters:
name
- the name of the identifierquoted
- if the identifier is quotedjdbcEnvironment
- the JDBC environment- Returns:
- an identifier instance
isCaseInsensitive
protected boolean isCaseInsensitive(org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment)
Specify whether the database is case sensitive.- Parameters:
jdbcEnvironment
- the JDBC environment which can be used to determine case- Returns:
- true if the database is case insensitive sensitivity