Class OracleNamingStrategyShogunCore
- java.lang.Object
-
- de.terrestris.shoguncore.util.naming.PhysicalNamingStrategyShogunCore
-
- de.terrestris.shoguncore.util.naming.OracleNamingStrategyShogunCore
-
- All Implemented Interfaces:
Serializable,org.hibernate.boot.model.naming.PhysicalNamingStrategy
public class OracleNamingStrategyShogunCore extends PhysicalNamingStrategyShogunCore
Naming strategy for Oracle DBs checking if * length of column name is lesser than 30 characters * column name does not match a reserved word (determined from Oracle DB's system dictionary V$RESERVED_WORDS- Author:
- Andre Henn, terrestris GmbH & co. KG
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.terrestris.shoguncore.util.naming.PhysicalNamingStrategyShogunCore
LENGTH_LIMIT_ORACLE, LENGTH_LIMIT_POSTGRESQL
-
-
Constructor Summary
Constructors Constructor Description OracleNamingStrategyShogunCore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetColumnNamePrefix(String columnNamePrefix)Set the column name prefixorg.hibernate.boot.model.naming.IdentifiertoPhysicalColumnName(org.hibernate.boot.model.naming.Identifier name, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment context)Check if columnIdentifierequals reserved word.-
Methods inherited from class de.terrestris.shoguncore.util.naming.PhysicalNamingStrategyShogunCore
convertToLimitedLowerCase, getIdentifierLengthLimit, getTablePrefix, setTablePrefix, toPhysicalCatalogName, toPhysicalSchemaName, toPhysicalSequenceName, toPhysicalTableName
-
-
-
-
Method Detail
-
toPhysicalColumnName
public org.hibernate.boot.model.naming.Identifier toPhysicalColumnName(org.hibernate.boot.model.naming.Identifier name, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment context)Check if columnIdentifierequals reserved word. If true, add prefix to column name- Specified by:
toPhysicalColumnNamein interfaceorg.hibernate.boot.model.naming.PhysicalNamingStrategy- Overrides:
toPhysicalColumnNamein classPhysicalNamingStrategyShogunCore- Parameters:
name- identifier to checkcontext- JDBC env- Returns:
- Identifier
-
setColumnNamePrefix
@Autowired(required=false) @Qualifier("columnNamePrefix") public void setColumnNamePrefix(String columnNamePrefix)Set the column name prefix- Parameters:
columnNamePrefix- prefix to set
-
-