Package org.hibernate.id.enhanced
Class SingleNamingStrategy
- java.lang.Object
-
- org.hibernate.id.enhanced.SingleNamingStrategy
-
- All Implemented Interfaces:
ImplicitDatabaseObjectNamingStrategy
public class SingleNamingStrategy extends Object implements ImplicitDatabaseObjectNamingStrategy
AnImplicitDatabaseObjectNamingStrategyusing a single structure for all implicit names:- "hibernate_sequence" for sequences
- "hibernate_sequences" for tables
-
-
Field Summary
Fields Modifier and Type Field Description static StringSTRATEGY_NAME-
Fields inherited from interface org.hibernate.id.enhanced.ImplicitDatabaseObjectNamingStrategy
DEF_SEQUENCE
-
-
Constructor Summary
Constructors Constructor Description SingleNamingStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QualifiedNamedetermineSequenceName(Identifier catalogName, Identifier schemaName, Map<?,?> configValues, ServiceRegistry serviceRegistry)Determine the implicit name for an identifier-generator sequenceQualifiedNamedetermineTableName(Identifier catalogName, Identifier schemaName, Map<?,?> configValues, ServiceRegistry serviceRegistry)Determine the implicit name for an identifier-generator table
-
-
-
Field Detail
-
STRATEGY_NAME
public static final String STRATEGY_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
determineSequenceName
public QualifiedName determineSequenceName(Identifier catalogName, Identifier schemaName, Map<?,?> configValues, ServiceRegistry serviceRegistry)
Description copied from interface:ImplicitDatabaseObjectNamingStrategyDetermine the implicit name for an identifier-generator sequence- Specified by:
determineSequenceNamein interfaceImplicitDatabaseObjectNamingStrategy- See Also:
SequenceStyleGenerator,SequenceStructure
-
determineTableName
public QualifiedName determineTableName(Identifier catalogName, Identifier schemaName, Map<?,?> configValues, ServiceRegistry serviceRegistry)
Description copied from interface:ImplicitDatabaseObjectNamingStrategyDetermine the implicit name for an identifier-generator table- Specified by:
determineTableNamein interfaceImplicitDatabaseObjectNamingStrategy- See Also:
TableGenerator,TableStructure
-
-