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 ImplicitNamingStrategyLegacyHbmImplSingleton 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 StringtransformEntityName(EntityNaming entityNaming) Methods inherited from class org.hibernate.boot.model.naming.ImplicitNamingStrategyJpaCompliantImpl
constraintNamePrefix, determineAnyDiscriminatorColumnName, determineAnyKeyColumnName, determineCollectionTableName, determineDiscriminatorColumnName, determineForeignKeyName, determineIdentifierColumnName, determineIndexName, determineListIndexColumnName, determineMapKeyColumnName, determinePrimaryKeyJoinColumnName, determinePrimaryTableName, determineTenantIdColumnName, determineUniqueKeyName, generateConstraintName, generateConstraintNameString, namingHelper, toIdentifier, toIdentifier, transformAttributePath
-
Field Details
-
INSTANCE
Singleton access
-
-
Constructor Details
-
ImplicitNamingStrategyLegacyHbmImpl
public ImplicitNamingStrategyLegacyHbmImpl()
-
-
Method Details
-
transformEntityName
- Overrides:
transformEntityNamein classImplicitNamingStrategyJpaCompliantImpl
-
determineBasicColumnName
Description copied from class:ImplicitNamingStrategyJpaCompliantImplJPA states we should use the following as default:The property or field name
That is, the unqualified attribute path.- Specified by:
determineBasicColumnNamein interfaceImplicitNamingStrategy- Overrides:
determineBasicColumnNamein classImplicitNamingStrategyJpaCompliantImpl- Parameters:
source- The source information- Returns:
- The implicit column name.
-
determineJoinColumnName
Description copied from class:ImplicitNamingStrategyJpaCompliantImplJPA 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:
determineJoinColumnNamein interfaceImplicitNamingStrategy- Overrides:
determineJoinColumnNamein classImplicitNamingStrategyJpaCompliantImpl- Parameters:
source- The source information- Returns:
- The determined join column name
- If there is a "referencing relationship property":
-
determineJoinTableName
Description copied from class:ImplicitNamingStrategyJpaCompliantImplJPA 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:
determineJoinTableNamein interfaceImplicitNamingStrategy- Overrides:
determineJoinTableNamein classImplicitNamingStrategyJpaCompliantImpl- Parameters:
source- The source information- Returns:
- The implicit table name.
-