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 |
---|---|
String |
getPropertyNameForForeignKey(String fkName,
EntityType entityType)
Convert the given foreign key name to a foreign key property name
|
String |
getPropertyNameForInverseForeignKey(String fkName,
EntityType entityType)
Convert the given foreign key name to a foreign key property name
|
getClassName, getDefaultAlias, getDefaultVariableName, getForeignKeysVariable, getPrimaryKeysVariable, getPropertyName, getPropertyNameForPrimaryKey, normalizePropertyName, toCamelCase
appendSchema, escape, getForeignKeysClassName, getPrimaryKeysClassName, normalizeColumnName, normalizeSchemaName, normalizeTableName, setForeignKeysClassName, setForeignKeysVariable, setPrimaryKeysClassName, setPrimaryKeysVariable, setReservedSuffix
public String getPropertyNameForForeignKey(String fkName, EntityType entityType)
NamingStrategy
getPropertyNameForForeignKey
in interface NamingStrategy
getPropertyNameForForeignKey
in class DefaultNamingStrategy
public String getPropertyNameForInverseForeignKey(String fkName, EntityType entityType)
NamingStrategy
getPropertyNameForInverseForeignKey
in interface NamingStrategy
getPropertyNameForInverseForeignKey
in class DefaultNamingStrategy
Copyright © 2007–2015 Mysema Ltd. All rights reserved.