org.hibernate.test.namingstrategy
Class TestNamingStrategy
java.lang.Object
org.hibernate.cfg.DefaultNamingStrategy
org.hibernate.test.namingstrategy.TestNamingStrategy
- All Implemented Interfaces:
- Serializable, NamingStrategy
public class TestNamingStrategy
- extends DefaultNamingStrategy
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestNamingStrategy
public TestNamingStrategy()
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 anypropertyName
- 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.