public class ExtendedNamingStrategy extends DefaultNamingStrategy
It looks for patterns like this .*_<forward>_<inverse> and uses the forward part for the foreign key name and inverse for the inverse foreign key name.
foreignKeysClassName, foreignKeysVariable, primaryKeysClassName, primaryKeysVariable, reservedSuffix| Constructor and Description |
|---|
ExtendedNamingStrategy() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getPropertyNameForForeignKey(java.lang.String fkName,
EntityType entityType)
Convert the given foreign key name to a foreign key property name
|
java.lang.String |
getPropertyNameForInverseForeignKey(java.lang.String fkName,
EntityType entityType)
Convert the given foreign key name to a foreign key property name
|
getClassName, getDefaultAlias, getDefaultVariableName, getForeignKeysVariable, getPrimaryKeysVariable, getPropertyName, getPropertyNameForPrimaryKey, normalizeColumnName, normalizePropertyName, normalizeSchemaName, normalizeTableName, toCamelCaseappendSchema, escape, getForeignKeysClassName, getPrimaryKeysClassName, setForeignKeysClassName, setForeignKeysVariable, setPrimaryKeysClassName, setPrimaryKeysVariable, setReservedSuffixpublic java.lang.String getPropertyNameForForeignKey(java.lang.String fkName,
EntityType entityType)
NamingStrategygetPropertyNameForForeignKey in interface NamingStrategygetPropertyNameForForeignKey in class DefaultNamingStrategypublic java.lang.String getPropertyNameForInverseForeignKey(java.lang.String fkName,
EntityType entityType)
NamingStrategygetPropertyNameForInverseForeignKey in interface NamingStrategygetPropertyNameForInverseForeignKey in class DefaultNamingStrategyCopyright © 2007-2013 Mysema Ltd. All Rights Reserved.