com.jalios.jcms.db
Class JcmsHibernateNamingStrategy

java.lang.Object
  extended by org.hibernate.cfg.ImprovedNamingStrategy
      extended by com.jalios.jcms.db.JcmsHibernateNamingStrategy
All Implemented Interfaces:
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
static String REVISION
           
 
Fields inherited from class org.hibernate.cfg.ImprovedNamingStrategy
INSTANCE
 
Constructor Summary
JcmsHibernateNamingStrategy()
           
 
Method Summary
 String columnName(String columnName)
           
 String propertyToColumnName(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
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values
Constructor Detail

JcmsHibernateNamingStrategy

public JcmsHibernateNamingStrategy()
Method Detail

propertyToColumnName

public String propertyToColumnName(String propertyName)
Specified by:
propertyToColumnName in interface org.hibernate.cfg.NamingStrategy
Overrides:
propertyToColumnName in class org.hibernate.cfg.ImprovedNamingStrategy

columnName

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


Copyright © 2001-2010 Jalios SA. All Rights Reserved.