Class 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
    • Constructor Detail

      • OracleNamingStrategyShogunCore

        public OracleNamingStrategyShogunCore()
    • 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 column Identifier equals reserved word. If true, add prefix to column name
        Specified by:
        toPhysicalColumnName in interface org.hibernate.boot.model.naming.PhysicalNamingStrategy
        Overrides:
        toPhysicalColumnName in class PhysicalNamingStrategyShogunCore
        Parameters:
        name - identifier to check
        context - 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