org.hibernate.cfg.NamingStrategy |
![]() |
A set of rules for determining the physical column
and table names given the information in the mapping
document. May be used to implement project-scoped
naming standards for database objects.
#propertyToTableName(String, String) should be replaced by
collectionTableName(String, String, String, String, String)
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return a table name for an entity class
| |||||||||||
Return a collection table name ie an association having a join table
| |||||||||||
Alter the column name given in the mapping document
| |||||||||||
Return the foreign key column name for the given parameters
| |||||||||||
Return the join key column name ie a FK column used in a JOINED strategy or for a secondary table
| |||||||||||
Returns the logical foreign key column name used to refer to this column in the mapping metadata
| |||||||||||
Returns the logical collection table name used to refer to a table in the mapping metadata
| |||||||||||
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 insersitively unique for a given table
| |||||||||||
Return a column name for a property path expression
| |||||||||||
Alter the table name given in the mapping document
|
Return a table name for an entity class
className | the fully-qualified class name |
---|
Return a collection table name ie an association having a join table
ownerEntityTable | owner side table name |
---|---|
associatedEntityTable | reverse side table name if any |
propertyName | collection role |
Alter the column name given in the mapping document
columnName | a column name |
---|
Return the foreign key column name for the given parameters
propertyName | the property name involved |
---|---|
propertyTableName | the property table name involved (logical one) |
referencedColumnName | the referenced column name involved (logical one) |
Return the join key column name ie a FK column used in a JOINED strategy or for a secondary table
joinedColumn | joined column name (logical one) used to join with |
---|---|
joinedTable | joined table name (ie the referenced table) used to join with |
Returns the logical foreign key column name used to refer to this column in the mapping metadata
columnName | given column name in the metadata if any |
---|---|
propertyName | property name |
referencedColumn | referenced column name (logical one) in the join |
Returns the logical collection table name used to refer to a table in the mapping metadata
tableName | the metadata explicit name |
---|---|
ownerEntityTable | owner table entity table name (logical one) |
associatedEntityTable | reverse side table name if any (logical one) |
propertyName | collection role |
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 insersitively unique for a given table
columnName | given column name if any |
---|---|
propertyName | property name of this column |
Return a column name for a property path expression
propertyName | a property path |
---|
Alter the table name given in the mapping document
tableName | a table name |
---|