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
AnImplicitDatabaseObjectNamingStrategy
using a single structure for all implicit names:- "hibernate_sequence" for sequences
- "hibernate_sequences" for tables
-
-
Field Summary
Fields Modifier and Type Field Description static String
STRATEGY_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 QualifiedName
determineSequenceName(Identifier catalogName, Identifier schemaName, Map<?,?> configValues, ServiceRegistry serviceRegistry)
Determine the implicit name for an identifier-generator sequenceQualifiedName
determineTableName(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:ImplicitDatabaseObjectNamingStrategy
Determine the implicit name for an identifier-generator sequence- Specified by:
determineSequenceName
in interfaceImplicitDatabaseObjectNamingStrategy
- See Also:
SequenceStyleGenerator
,SequenceStructure
-
determineTableName
public QualifiedName determineTableName(Identifier catalogName, Identifier schemaName, Map<?,?> configValues, ServiceRegistry serviceRegistry)
Description copied from interface:ImplicitDatabaseObjectNamingStrategy
Determine the implicit name for an identifier-generator table- Specified by:
determineTableName
in interfaceImplicitDatabaseObjectNamingStrategy
- See Also:
TableGenerator
,TableStructure
-
-