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:
java.io.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 name of an attribute's column given the source naming information, when a name is not explicitly given.Identifier
determineJoinColumnName(ImplicitJoinColumnNameSource source)
Determine the column name related toJoinColumn
.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 java.lang.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 java.lang.String transformEntityName(EntityNaming entityNaming)
- Overrides:
transformEntityName
in classImplicitNamingStrategyJpaCompliantImpl
-
determineBasicColumnName
public Identifier determineBasicColumnName(ImplicitBasicColumnNameSource source)
Description copied from interface:ImplicitNamingStrategy
Determine the name of an attribute's column given the source naming information, when a name is not explicitly given.- 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 column name related toJoinColumn
. Inhbm.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.- Specified by:
determineJoinTableName
in interfaceImplicitNamingStrategy
- Overrides:
determineJoinTableName
in classImplicitNamingStrategyJpaCompliantImpl
- Parameters:
source
- The source information- Returns:
- The implicit table name.
-
-