Package com.jalios.jcms.db
Class JcmsHibernateNamingStrategy
- java.lang.Object
-
- org.hibernate.cfg.ImprovedNamingStrategy
-
- com.jalios.jcms.db.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
-
Constructor Summary
Constructors Constructor Description JcmsHibernateNamingStrategy()
-
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)
-
-
-
Field Detail
-
COLUMN_PREFIX
public static final java.lang.String COLUMN_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
propertyToColumnName
public java.lang.String propertyToColumnName(java.lang.String propertyName)
- Specified by:
propertyToColumnName
in interfaceorg.hibernate.cfg.NamingStrategy
- Overrides:
propertyToColumnName
in classorg.hibernate.cfg.ImprovedNamingStrategy
-
columnName
public java.lang.String columnName(java.lang.String columnName)
- Specified by:
columnName
in interfaceorg.hibernate.cfg.NamingStrategy
- Overrides:
columnName
in classorg.hibernate.cfg.ImprovedNamingStrategy
-
-