Deprecated
org. and org. should be used instead.
collectionTableName(String, String, String, String, String)
DefaultNamingStrategy, ImprovedNamingStrategy
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: a table namethe fully-qualified class name className)Return a table name for an entity class |
| public String | |
| public String | Returns: a column namea column name columnName)Alter the column name given in the mapping document |
| public String | foreignKeyColumnName(String
the property name involved propertyName, String propertyEntityName, String the property table name involved (logical one) propertyTableName, String the referenced column name involved (logical one) referencedColumnName)Return the foreign key column name for the given parameters |
| public String | joinKeyColumnName(String
joined column name (logical one) used to join with joinedColumn, String joined table name (ie the referenced table) used to join with joinedTable)Return the join key column name ie a FK column used in a JOINED strategy or for a secondary table |
| public String | logicalCollectionColumnName(String
given column name in the metadata if any columnName, String property name propertyName, String referenced column name (logical one) in the join referencedColumn)Returns the logical foreign key column name used to refer to this column in the mapping metadata |
| public String | logicalCollectionTableName(String
the metadata explicit name tableName, String owner table entity table name (logical one) ownerEntityTable, String reverse side table name if any (logical one) associatedEntityTable, String collection role propertyName)Returns the logical collection table name used to refer to a table in the mapping metadata |
| public String | logicalColumnName(String
given column name if any columnName, String property name of this column propertyName)Return the logical column name used to refer to a column in the metadata (like index, unique constraints etc) A full bijection is required between logicalNames and physical ones logicalName have to be case insensitively unique for a given table |
| public String | Returns: a column namea property path propertyName)Return a column name for a property path expression |
| public String |
| classToTableName | back to summary |
|---|---|
| public String classToTableName(String className) Return a table name for an entity class | |
| collectionTableName | back to summary |
|---|---|
| public String collectionTableName(String ownerEntity, String ownerEntityTable, String associatedEntity, String associatedEntityTable, String propertyName) Return a collection table name ie an association having a join table | |
| columnName | back to summary |
|---|---|
| public String columnName(String columnName) Alter the column name given in the mapping document | |
| foreignKeyColumnName | back to summary |
|---|---|
| public String foreignKeyColumnName(String propertyName, String propertyEntityName, String propertyTableName, String referencedColumnName) Return the foreign key column name for the given parameters | |
| joinKeyColumnName | back to summary |
|---|---|
| public String joinKeyColumnName(String joinedColumn, String joinedTable) Return the join key column name ie a FK column used in a JOINED strategy or for a secondary table | |
| logicalCollectionColumnName | back to summary |
|---|---|
| public String logicalCollectionColumnName(String columnName, String propertyName, String referencedColumn) Returns the logical foreign key column name used to refer to this column in the mapping metadata | |
| logicalCollectionTableName | back to summary |
|---|---|
| public String logicalCollectionTableName(String tableName, String ownerEntityTable, String associatedEntityTable, String propertyName) Returns the logical collection table name used to refer to a table in the mapping metadata | |
| logicalColumnName | back to summary |
|---|---|
| public String logicalColumnName(String columnName, String propertyName) Return the logical column name used to refer to a column in the metadata (like index, unique constraints etc) A full bijection is required between logicalNames and physical ones logicalName have to be case insensitively unique for a given table | |
| propertyToColumnName | back to summary |
|---|---|
| public String propertyToColumnName(String propertyName) Return a column name for a property path expression | |
| tableName | back to summary |
|---|---|
| public String tableName(String tableName) Alter the table name given in the mapping document | |