Package org.hibernate.boot.model.naming
Class ImplicitNamingStrategyComponentPathImpl
- java.lang.Object
-
- org.hibernate.boot.model.naming.ImplicitNamingStrategyJpaCompliantImpl
-
- org.hibernate.boot.model.naming.ImplicitNamingStrategyComponentPathImpl
-
- All Implemented Interfaces:
Serializable
,ImplicitNamingStrategy
public class ImplicitNamingStrategyComponentPathImpl extends ImplicitNamingStrategyJpaCompliantImpl
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- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static ImplicitNamingStrategyComponentPathImpl
INSTANCE
-
Constructor Summary
Constructors Constructor Description ImplicitNamingStrategyComponentPathImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
process(AttributePath attributePath, StringBuilder sb)
protected String
transformAttributePath(AttributePath attributePath)
For JPA standards we typically need the unqualified name.-
Methods inherited from class org.hibernate.boot.model.naming.ImplicitNamingStrategyJpaCompliantImpl
determineAnyDiscriminatorColumnName, determineAnyKeyColumnName, determineBasicColumnName, determineCollectionTableName, determineDiscriminatorColumnName, determineForeignKeyName, determineIdentifierColumnName, determineIndexName, determineJoinColumnName, determineJoinTableName, determineListIndexColumnName, determineMapKeyColumnName, determinePrimaryKeyJoinColumnName, determinePrimaryTableName, determineTenantIdColumnName, determineUniqueKeyName, toIdentifier, transformEntityName
-
-
-
-
Field Detail
-
INSTANCE
public static final ImplicitNamingStrategyComponentPathImpl INSTANCE
-
-
Method Detail
-
transformAttributePath
protected String transformAttributePath(AttributePath attributePath)
Description copied from class:ImplicitNamingStrategyJpaCompliantImpl
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- Overrides:
transformAttributePath
in classImplicitNamingStrategyJpaCompliantImpl
- Parameters:
attributePath
- The attribute path- Returns:
- The extracted name
-
process
public static void process(AttributePath attributePath, StringBuilder sb)
-
-