Package org.hibernate.boot.model.naming
Class ImplicitNamingStrategyLegacyJpaImpl
java.lang.Object
org.hibernate.boot.model.naming.ImplicitNamingStrategyJpaCompliantImpl
org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyJpaImpl
- All Implemented Interfaces:
Serializable
,ImplicitNamingStrategy
Implementation of the ImplicitNamingStrategy contract which conforms to the
naming rules initially implemented by Hibernate for JPA 1.0, prior to many
things being clarified.
For a more JPA 2 compliant strategy, see/use ImplicitNamingStrategyJpaCompliantImpl
Corresponds roughly to the legacy org.hibernate.cfg.EJB3NamingStrategy class.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ImplicitNamingStrategyLegacyJpaImpl
Singleton access -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDetermine the name of a collection join table given the source naming information, when a name is not explicitly given.Determine the join column name when it is not explicitly specified usingJoinColumn.name()
.Determine the name of an association join table given the source naming information, when a name is not explicitly given.Methods inherited from class org.hibernate.boot.model.naming.ImplicitNamingStrategyJpaCompliantImpl
determineAnyDiscriminatorColumnName, determineAnyKeyColumnName, determineBasicColumnName, determineDiscriminatorColumnName, determineForeignKeyName, determineIdentifierColumnName, determineIndexName, determineListIndexColumnName, determineMapKeyColumnName, determinePrimaryKeyJoinColumnName, determinePrimaryTableName, determineTenantIdColumnName, determineUniqueKeyName, toIdentifier, transformAttributePath, transformEntityName
-
Field Details
-
INSTANCE
Singleton access
-
-
Constructor Details
-
ImplicitNamingStrategyLegacyJpaImpl
public ImplicitNamingStrategyLegacyJpaImpl()
-
-
Method Details
-
determineCollectionTableName
Description copied from interface:ImplicitNamingStrategy
Determine the name of a collection join table given the source naming information, when a name is not explicitly given. This method is called only for collections of basic or embeddable values, and never for associations.- Specified by:
determineCollectionTableName
in interfaceImplicitNamingStrategy
- Overrides:
determineCollectionTableName
in classImplicitNamingStrategyJpaCompliantImpl
- Parameters:
source
- The source information- Returns:
- The implicit table name.
-
determineJoinTableName
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.
-
determineJoinColumnName
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
-