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
public class ImplicitNamingStrategyLegacyHbmImpl extends ImplicitNamingStrategyJpaCompliantImpl
Implements the original legacy naming behavior.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static ImplicitNamingStrategyLegacyHbmImpl
INSTANCE
Singleton access
-
Constructor Summary
Constructors Constructor Description ImplicitNamingStrategyLegacyHbmImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Identifier
determineBasicColumnName(ImplicitBasicColumnNameSource source)
Determine the column name when it is not explicitly specified usingColumn.name()
.Identifier
determineJoinColumnName(ImplicitJoinColumnNameSource source)
Determine the join column name when it is not explicitly specified usingJoinColumn.name()
.Identifier
determineJoinTableName(ImplicitJoinTableNameSource source)
Determine the name of an association join table given the source naming information, when a name is not explicitly given.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 Detail
-
INSTANCE
public static final ImplicitNamingStrategyLegacyHbmImpl INSTANCE
Singleton access
-
-
Method Detail
-
transformEntityName
protected String transformEntityName(EntityNaming entityNaming)
- Overrides:
transformEntityName
in classImplicitNamingStrategyJpaCompliantImpl
-
determineBasicColumnName
public Identifier determineBasicColumnName(ImplicitBasicColumnNameSource source)
Description copied from interface:ImplicitNamingStrategy
Determine the column name when it is not explicitly specified usingColumn.name()
.- Specified by:
determineBasicColumnName
in interfaceImplicitNamingStrategy
- Overrides:
determineBasicColumnName
in classImplicitNamingStrategyJpaCompliantImpl
- Parameters:
source
- The source information- Returns:
- The implicit column name.
-
determineJoinColumnName
public Identifier determineJoinColumnName(ImplicitJoinColumnNameSource source)
Description copied from interface:ImplicitNamingStrategy
Determine the join column name when it is not explicitly specified usingJoinColumn.name()
.In
hbm.xml
terms, this would be a<key/>
defined for a collection or the column associated with a many-to-one.- Specified by:
determineJoinColumnName
in interfaceImplicitNamingStrategy
- Overrides:
determineJoinColumnName
in classImplicitNamingStrategyJpaCompliantImpl
- Parameters:
source
- The source information- Returns:
- The determined join column name
-
determineJoinTableName
public Identifier determineJoinTableName(ImplicitJoinTableNameSource source)
Description copied from interface:ImplicitNamingStrategy
Determine the name of an association join table given the source naming information, when a name is not explicitly given. This method is called for any sort of association with a join table, no matter what the logical cardinality.- Specified by:
determineJoinTableName
in interfaceImplicitNamingStrategy
- Overrides:
determineJoinTableName
in classImplicitNamingStrategyJpaCompliantImpl
- Parameters:
source
- The source information- Returns:
- The implicit table name.
-
-