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

public Class ImplicitNamingStrategyComponentPathImpl

extends ImplicitNamingStrategyJpaCompliantImpl
Class Inheritance
Imports
org.hibernate.boot.model.source.spi.AttributePath, org.hibernate.internal.util.StringHelper, org.hibernate.loader.PropertyPath

An ImplicitNamingStrategy implementation which uses full composite paths extracted from AttributePath, as opposed to just the terminal property part. Mainly a port of the older DefaultComponentSafeNamingStrategy class implementing the no longer supported NamingStrategy contract
Authors
Steve Ebersole, Emmanuel Bernard

Field Summary

Modifier and TypeField and Description
public static final ImplicitNamingStrategyComponentPathImpl

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
process(AttributePath attributePath, StringBuilder sb)

protected String
transformAttributePath(AttributePath
The attribute path
attributePath
)

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

For JPA standards we typically need the unqualified name.
Inherited from org.hibernate.boot.model.naming.ImplicitNamingStrategyJpaCompliantImpl:
determineAnyDiscriminatorColumnNamedetermineAnyKeyColumnNamedetermineBasicColumnNamedetermineCollectionTableNamedetermineDiscriminatorColumnNamedetermineForeignKeyNamedetermineIdentifierColumnNamedetermineIndexNamedetermineJoinColumnNamedetermineJoinTableNamedetermineListIndexColumnNamedetermineMapKeyColumnNamedeterminePrimaryKeyJoinColumnNamedeterminePrimaryTableNamedetermineTenantIdColumnNamedetermineUniqueKeyNametoIdentifiertransformEntityName

Field Detail

INSTANCEback to summary
public static final ImplicitNamingStrategyComponentPathImpl INSTANCE

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

Constructor Detail

ImplicitNamingStrategyComponentPathImplback to summary
public ImplicitNamingStrategyComponentPathImpl()

Method Detail

processback to summary
public static void process(AttributePath attributePath, StringBuilder sb)
transformAttributePathback to summary
protected String transformAttributePath(AttributePath attributePath)

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

Doc from org.hibernate.boot.model.naming.ImplicitNamingStrategyJpaCompliantImpl.transformAttributePath.

For JPA standards we typically need the unqualified name. However, a more usable impl tends to use the whole path. This method provides an easy hook for subclasses to accomplish that

Parameters
attributePath:AttributePath

The attribute path

Returns:String

The extracted name

Annotations
@Override