Top Description Fields Constructors Methods
org.hibernate.boot.model.naming

public Class ImplicitNamingStrategyLegacyJpaImpl

extends ImplicitNamingStrategyJpaCompliantImpl
Class Inheritance

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.

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
public static final ImplicitNamingStrategyLegacyJpaImpl

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Identifier
determineCollectionTableName(ImplicitCollectionTableNameSource
The source information
source
)

Overrides org.hibernate.boot.model.naming.ImplicitNamingStrategyJpaCompliantImpl.determineCollectionTableName.

Implements org.hibernate.boot.model.naming.ImplicitNamingStrategy.determineCollectionTableName.

Determine the name of a collection join table given the source naming information, when a name is not explicitly given.
public Identifier
public Identifier
determineJoinTableName(ImplicitJoinTableNameSource
The source information
source
)

Overrides org.hibernate.boot.model.naming.ImplicitNamingStrategyJpaCompliantImpl.determineJoinTableName.

Implements org.hibernate.boot.model.naming.ImplicitNamingStrategy.determineJoinTableName.

Determine the name of an association join table given the source naming information, when a name is not explicitly given.
Inherited from org.hibernate.boot.model.naming.ImplicitNamingStrategyJpaCompliantImpl:
determineAnyDiscriminatorColumnNamedetermineAnyKeyColumnNamedetermineBasicColumnNamedetermineDiscriminatorColumnNamedetermineForeignKeyNamedetermineIdentifierColumnNamedetermineIndexNamedetermineListIndexColumnNamedetermineMapKeyColumnNamedeterminePrimaryKeyJoinColumnNamedeterminePrimaryTableNamedetermineTenantIdColumnNamedetermineUniqueKeyNametoIdentifiertransformAttributePathtransformEntityName

Field Detail

INSTANCEback to summary
public static final ImplicitNamingStrategyLegacyJpaImpl INSTANCE

Hides org.hibernate.boot.model.naming.ImplicitNamingStrategyJpaCompliantImpl.INSTANCE.

Singleton access

Constructor Detail

ImplicitNamingStrategyLegacyJpaImplback to summary
public ImplicitNamingStrategyLegacyJpaImpl()

Method Detail

determineCollectionTableNameback to summary
public Identifier determineCollectionTableName(ImplicitCollectionTableNameSource source)

Overrides org.hibernate.boot.model.naming.ImplicitNamingStrategyJpaCompliantImpl.determineCollectionTableName.

Implements org.hibernate.boot.model.naming.ImplicitNamingStrategy.determineCollectionTableName.

Doc from org.hibernate.boot.model.naming.ImplicitNamingStrategy.determineCollectionTableName.

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.

Parameters
source:ImplicitCollectionTableNameSource

The source information

Returns:Identifier

The implicit table name.

Annotations
@Override
determineJoinColumnNameback to summary
public Identifier determineJoinColumnName(ImplicitJoinColumnNameSource source)

Overrides org.hibernate.boot.model.naming.ImplicitNamingStrategyJpaCompliantImpl.determineJoinColumnName.

Implements org.hibernate.boot.model.naming.ImplicitNamingStrategy.determineJoinColumnName.

Doc from org.hibernate.boot.model.naming.ImplicitNamingStrategy.determineJoinColumnName.

Determine the join column name when it is not explicitly specified using jakarta.persistence.JoinColumn#name().

In hbm.xml terms, this would be a <key/> defined for a collection or the column associated with a many-to-one.

Parameters
source:ImplicitJoinColumnNameSource

The source information

Returns:Identifier

The determined join column name

Annotations
@Override
determineJoinTableNameback to summary
public Identifier determineJoinTableName(ImplicitJoinTableNameSource source)

Overrides org.hibernate.boot.model.naming.ImplicitNamingStrategyJpaCompliantImpl.determineJoinTableName.

Implements org.hibernate.boot.model.naming.ImplicitNamingStrategy.determineJoinTableName.

Doc from org.hibernate.boot.model.naming.ImplicitNamingStrategy.determineJoinTableName.

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.

Parameters
source:ImplicitJoinTableNameSource

The source information

Returns:Identifier

The implicit table name.

Annotations
@Override