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:
java.io.Serializable,ImplicitNamingStrategy
public class ImplicitNamingStrategyLegacyJpaImpl extends ImplicitNamingStrategyJpaCompliantImpl
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/useImplicitNamingStrategyJpaCompliantImplCorresponds roughly to the legacy org.hibernate.cfg.EJB3NamingStrategy class.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static ImplicitNamingStrategyLegacyJpaImplINSTANCESingleton access
-
Constructor Summary
Constructors Constructor Description ImplicitNamingStrategyLegacyJpaImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IdentifierdetermineCollectionTableName(ImplicitCollectionTableNameSource source)Determine the name of a collection join table given the source naming information, when a name is not explicitly given.IdentifierdetermineJoinColumnName(ImplicitJoinColumnNameSource source)Determine the column name related toJoinColumn.IdentifierdetermineJoinTableName(ImplicitJoinTableNameSource source)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 Detail
-
INSTANCE
public static final ImplicitNamingStrategyLegacyJpaImpl INSTANCE
Singleton access
-
-
Method Detail
-
determineCollectionTableName
public Identifier determineCollectionTableName(ImplicitCollectionTableNameSource source)
Description copied from interface:ImplicitNamingStrategyDetermine the name of a collection join table given the source naming information, when a name is not explicitly given.- Specified by:
determineCollectionTableNamein interfaceImplicitNamingStrategy- Overrides:
determineCollectionTableNamein classImplicitNamingStrategyJpaCompliantImpl- Parameters:
source- The source information- Returns:
- The implicit table name.
-
determineJoinTableName
public Identifier determineJoinTableName(ImplicitJoinTableNameSource source)
Description copied from interface:ImplicitNamingStrategyDetermine the name of an association join table given the source naming information, when a name is not explicitly given.- Specified by:
determineJoinTableNamein interfaceImplicitNamingStrategy- Overrides:
determineJoinTableNamein classImplicitNamingStrategyJpaCompliantImpl- Parameters:
source- The source information- Returns:
- The implicit table name.
-
determineJoinColumnName
public Identifier determineJoinColumnName(ImplicitJoinColumnNameSource source)
Description copied from interface:ImplicitNamingStrategyDetermine the column name related toJoinColumn. Inhbm.xmlterms, this would be a<key/>defined for a collection or the column associated with a many-to-one.- Specified by:
determineJoinColumnNamein interfaceImplicitNamingStrategy- Overrides:
determineJoinColumnNamein classImplicitNamingStrategyJpaCompliantImpl- Parameters:
source- The source information- Returns:
- The determined join column name
-
-