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
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/use
ImplicitNamingStrategyJpaCompliantImpl
Corresponds roughly to the legacy org.hibernate.cfg.EJB3NamingStrategy class.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static ImplicitNamingStrategyLegacyJpaImpl
INSTANCE
Singleton access
-
Constructor Summary
Constructors Constructor Description ImplicitNamingStrategyLegacyJpaImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Identifier
determineCollectionTableName(ImplicitCollectionTableNameSource source)
Determine the name of a collection join table given the source naming information, when a name is not explicitly given.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.-
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: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
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.
-
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
-
-