|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.hibernate.cfg.ImprovedNamingStrategy
An improved naming strategy that prefers embedded underscores to mixed case names
the default strategy| Field Summary | |
static NamingStrategy |
INSTANCE
The singleton instance |
| Constructor Summary | |
protected |
ImprovedNamingStrategy()
|
| Method Summary | |
String |
classToTableName(String className)
Return the unqualified class name, mixed case converted to underscores |
String |
columnName(String columnName)
Convert mixed case to underscores |
String |
propertyToColumnName(String propertyName)
Return the full property path with underscore seperators, mixed case converted to underscores |
String |
propertyToTableName(String className,
String propertyName)
Return the full property path prefixed by the unqualified class name, with underscore seperators, mixed case converted to underscores |
String |
tableName(String tableName)
Convert mixed case to underscores |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final NamingStrategy INSTANCE
| Constructor Detail |
protected ImprovedNamingStrategy()
| Method Detail |
public String classToTableName(String className)
classToTableName in interface NamingStrategyclassName - the fully-qualified class name
public String propertyToColumnName(String propertyName)
propertyToColumnName in interface NamingStrategypropertyName - a property path
public String tableName(String tableName)
tableName in interface NamingStrategytableName - a table name
public String columnName(String columnName)
columnName in interface NamingStrategycolumnName - a column name
public String propertyToTableName(String className, String propertyName)
propertyToTableName in interface NamingStrategyclassName - the fully-qualified name of the owning entity classpropertyName - a property path
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||