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, toCamelCase
appendSchema, escape, getForeignKeysClassName, getPrimaryKeysClassName, setForeignKeysClassName, setForeignKeysVariable, setPrimaryKeysClassName, setPrimaryKeysVariable, setReservedSuffix
public java.lang.String getPropertyNameForForeignKey(java.lang.String fkName, EntityType entityType)
NamingStrategy
getPropertyNameForForeignKey
in interface NamingStrategy
getPropertyNameForForeignKey
in class DefaultNamingStrategy
public java.lang.String getPropertyNameForInverseForeignKey(java.lang.String fkName, EntityType entityType)
NamingStrategy
getPropertyNameForInverseForeignKey
in interface NamingStrategy
getPropertyNameForInverseForeignKey
in class DefaultNamingStrategy
Copyright © 2007-2013 Mysema Ltd. All Rights Reserved.