org.hibernate.test.namingstrategy
Class TestNamingStrategy

java.lang.Object
  extended by org.hibernate.cfg.DefaultNamingStrategy
      extended by org.hibernate.test.namingstrategy.TestNamingStrategy
All Implemented Interfaces:
Serializable, NamingStrategy

public class TestNamingStrategy
extends DefaultNamingStrategy

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.hibernate.cfg.DefaultNamingStrategy
INSTANCE
 
Constructor Summary
TestNamingStrategy()
           
 
Method Summary
 String columnName(String columnName)
          Return the argument
 String logicalColumnName(String columnName, String propertyName)
          Return the column name or the unqualified property name
 String propertyToColumnName(String propertyName)
          Return the unqualified property name
 String tableName(String tableName)
          Return the argument
 
Methods inherited from class org.hibernate.cfg.DefaultNamingStrategy
classToTableName, collectionTableName, foreignKeyColumnName, joinKeyColumnName, logicalCollectionColumnName, logicalCollectionTableName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestNamingStrategy

public TestNamingStrategy()
Method Detail

propertyToColumnName

public String propertyToColumnName(String propertyName)
Description copied from class: DefaultNamingStrategy
Return the unqualified property name

Specified by:
propertyToColumnName in interface NamingStrategy
Overrides:
propertyToColumnName in class DefaultNamingStrategy
Parameters:
propertyName - a property path
Returns:
a column name

columnName

public String columnName(String columnName)
Description copied from class: DefaultNamingStrategy
Return the argument

Specified by:
columnName in interface NamingStrategy
Overrides:
columnName in class DefaultNamingStrategy
Parameters:
columnName - a column name
Returns:
a column name

logicalColumnName

public String logicalColumnName(String columnName,
                                String propertyName)
Description copied from class: DefaultNamingStrategy
Return the column name or the unqualified property name

Specified by:
logicalColumnName in interface NamingStrategy
Overrides:
logicalColumnName in class DefaultNamingStrategy
Parameters:
columnName - given column name if any
propertyName - property name of this column

tableName

public String tableName(String tableName)
Description copied from class: DefaultNamingStrategy
Return the argument

Specified by:
tableName in interface NamingStrategy
Overrides:
tableName in class DefaultNamingStrategy
Parameters:
tableName - a table name
Returns:
a table name


Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.