Package org.hibernate.boot.model.naming
Class ImplicitNamingStrategyLegacyHbmImpl
java.lang.Object
org.hibernate.boot.model.naming.ImplicitNamingStrategyJpaCompliantImpl
org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyHbmImpl
- All Implemented Interfaces:
Serializable
,ImplicitNamingStrategy
Implements the original legacy naming behavior.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ImplicitNamingStrategyLegacyHbmImpl
Singleton access -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionJPA states we should use the following as default: The property or field name That is, the unqualified attribute path.JPA states we should use the following as default: If there is a "referencing relationship property": The concatenation of the following: the name of the referencing relationship property or field of the referencing entity or embeddable class;_
; the name of the referenced primary key column. If there is no such "referencing relationship property", or if the association is an element collection: The concatenation of the following: the name of the entity;_
; the name of the referenced primary key columnJPA states we should use the following as default: The concatenated names of the two associated primary entity tables (owning side first), separated by an underscore. That is:protected String
transformEntityName
(EntityNaming entityNaming) Methods inherited from class org.hibernate.boot.model.naming.ImplicitNamingStrategyJpaCompliantImpl
determineAnyDiscriminatorColumnName, determineAnyKeyColumnName, determineCollectionTableName, determineDiscriminatorColumnName, determineForeignKeyName, determineIdentifierColumnName, determineIndexName, determineListIndexColumnName, determineMapKeyColumnName, determinePrimaryKeyJoinColumnName, determinePrimaryTableName, determineTenantIdColumnName, determineUniqueKeyName, toIdentifier, transformAttributePath
-
Field Details
-
INSTANCE
Singleton access
-
-
Constructor Details
-
ImplicitNamingStrategyLegacyHbmImpl
public ImplicitNamingStrategyLegacyHbmImpl()
-
-
Method Details
-
transformEntityName
- Overrides:
transformEntityName
in classImplicitNamingStrategyJpaCompliantImpl
-
determineBasicColumnName
Description copied from class:ImplicitNamingStrategyJpaCompliantImpl
JPA states we should use the following as default:The property or field name
That is, the unqualified attribute path.- Specified by:
determineBasicColumnName
in interfaceImplicitNamingStrategy
- Overrides:
determineBasicColumnName
in classImplicitNamingStrategyJpaCompliantImpl
- Parameters:
source
- The source information- Returns:
- The implicit column name.
-
determineJoinColumnName
Description copied from class:ImplicitNamingStrategyJpaCompliantImpl
JPA states we should use the following as default:- If there is a "referencing relationship property":
The concatenation of the following: the name of the referencing relationship property or field of the referencing entity or embeddable class;
_
; the name of the referenced primary key column. - If there is no such "referencing relationship property",
or if the association is an element collection:
The concatenation of the following: the name of the entity;
_
; the name of the referenced primary key column
- Specified by:
determineJoinColumnName
in interfaceImplicitNamingStrategy
- Overrides:
determineJoinColumnName
in classImplicitNamingStrategyJpaCompliantImpl
- Parameters:
source
- The source information- Returns:
- The determined join column name
- If there is a "referencing relationship property":
-
determineJoinTableName
Description copied from class:ImplicitNamingStrategyJpaCompliantImpl
JPA states we should use the following as default:The concatenated names of the two associated primary entity tables (owning side first), separated by an underscore.
That is:{OWNING SIDE PRIMARY TABLE NAME}_{NON-OWNING SIDE PRIMARY TABLE NAME}
- Specified by:
determineJoinTableName
in interfaceImplicitNamingStrategy
- Overrides:
determineJoinTableName
in classImplicitNamingStrategyJpaCompliantImpl
- Parameters:
source
- The source information- Returns:
- The implicit table name.
-