Class JcmsHibernateNamingStrategy

  • All Implemented Interfaces:
    java.io.Serializable, org.hibernate.cfg.NamingStrategy

    public class JcmsHibernateNamingStrategy
    extends org.hibernate.cfg.ImprovedNamingStrategy
    This class defines the JCMS Hibernate Naming Strategy for tables and column names.
    Since:
    jcms-6.0.0
    Author:
    Olivier Dedieu
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String COLUMN_PREFIX  
      static java.lang.String REVISION  
      • Fields inherited from class org.hibernate.cfg.ImprovedNamingStrategy

        INSTANCE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String columnName​(java.lang.String columnName)  
      java.lang.String propertyToColumnName​(java.lang.String propertyName)  
      • Methods inherited from class org.hibernate.cfg.ImprovedNamingStrategy

        addUnderscores, classToTableName, collectionTableName, foreignKeyColumnName, joinKeyColumnName, logicalCollectionColumnName, logicalCollectionTableName, logicalColumnName, tableName
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JcmsHibernateNamingStrategy

        public JcmsHibernateNamingStrategy()
    • Method Detail

      • propertyToColumnName

        public java.lang.String propertyToColumnName​(java.lang.String propertyName)
        Specified by:
        propertyToColumnName in interface org.hibernate.cfg.NamingStrategy
        Overrides:
        propertyToColumnName in class org.hibernate.cfg.ImprovedNamingStrategy
      • columnName

        public java.lang.String columnName​(java.lang.String columnName)
        Specified by:
        columnName in interface org.hibernate.cfg.NamingStrategy
        Overrides:
        columnName in class org.hibernate.cfg.ImprovedNamingStrategy