|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A set of rules for determining the physical column and table names given the information in the mapping document. May be used to implement project-scoped naming standards for database objects.
DefaultNamingStrategy
,
ImprovedNamingStrategy
Method Summary | |
String |
classToTableName(String className)
Return a table name for an entity class |
String |
columnName(String columnName)
Alter the column name given in the mapping document |
String |
propertyToColumnName(String propertyName)
Return a column name for a property path expression |
String |
propertyToTableName(String className,
String propertyName)
Return a table name for a collection |
String |
tableName(String tableName)
Alter the table name given in the mapping document |
Method Detail |
public String classToTableName(String className)
className
- the fully-qualified class name
public String propertyToColumnName(String propertyName)
propertyName
- a property path
public String tableName(String tableName)
tableName
- a table name
public String columnName(String columnName)
columnName
- a column name
public String propertyToTableName(String className, String propertyName)
className
- 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 |