com.mysema.query.sql
Class ExtendedNamingStrategy
java.lang.Object
com.mysema.query.sql.AbstractNamingStrategy
com.mysema.query.sql.DefaultNamingStrategy
com.mysema.query.sql.ExtendedNamingStrategy
- All Implemented Interfaces:
- NamingStrategy
public class ExtendedNamingStrategy
- extends DefaultNamingStrategy
ExtendedNamingStrategy works like the DefaultNamingStrategy but tries to create foreign key
property names in a different way.
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.
- Author:
- tiwe
Methods inherited from class com.mysema.query.sql.DefaultNamingStrategy |
escape, getClassName, getDefaultAlias, getDefaultVariableName, getForeignKeysVariable, getPrimaryKeysVariable, getPropertyName, getPropertyNameForPrimaryKey, normalizeColumnName, normalizePropertyName, normalizeSchemaName, normalizeTableName, toCamelCase |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExtendedNamingStrategy
public ExtendedNamingStrategy()
getPropertyNameForForeignKey
public String getPropertyNameForForeignKey(String fkName,
EntityType entityType)
- Description copied from interface:
NamingStrategy
- Convert the given foreign key name to a foreign key property name
- Specified by:
getPropertyNameForForeignKey
in interface NamingStrategy
- Overrides:
getPropertyNameForForeignKey
in class DefaultNamingStrategy
- Returns:
getPropertyNameForInverseForeignKey
public String getPropertyNameForInverseForeignKey(String fkName,
EntityType entityType)
- Description copied from interface:
NamingStrategy
- Convert the given foreign key name to a foreign key property name
- Specified by:
getPropertyNameForInverseForeignKey
in interface NamingStrategy
- Overrides:
getPropertyNameForInverseForeignKey
in class DefaultNamingStrategy
- Returns:
Copyright © 2007-2012 Mysema Ltd. All Rights Reserved.