IdentifierGenerator instances. The implementor
of this service is responsible for providing implementations of the predefined
built-in id generators, all of which implement IdentifierGenerator, along
with any id generator declared using org.hibernate.annotations.GenericGenerator .
An id generator is identified by either:
hbm.xml
mapping file format),
name or the
the type specified
by the @GenericGenerator annotation, or
GenerationType.
A new generator passed a Properties object containing parameters via the
method IdentifierGenerator#configure(Type, Properties, ServiceRegistry).
This is part of an older mechanism for instantiating and configuring id generators
which predates the existence of Generator and the
@IdGeneratorType meta-annotation.
| Modifier and Type | Method and Description |
|---|---|
| public Generator | createIdentifierGenerator(GenerationType generationType, String generatedValueGeneratorName, String generatorName, JavaType<?> javaType, Properties config, GeneratorDefinitionResolver definitionResolver)
Create an |
| public Generator | Returns: The appropriate generator instance.The generation strategy. strategy, Type The mapping type for the identifier values. type, Properties Any parameters properties given in the generator mapping. parameters)
Deprecated
since 6.0. use
Given a strategy, retrieve the appropriate identifier generator instance.
createIdentifierGenerator(GenerationType, String, String, JavaType, Properties, GeneratorDefinitionResolver)
instead
|
| public Dialect | Returns: the dialect
Deprecated
for removal since 6.2. should be removed
Get the dialect.
|
| public Class | Returns: The generator class.The strategy strategy)
Deprecated
since 6.0. with no replacement.
Retrieve the class that will be used as the IdentifierGenerator for the given strategy.
|
| createIdentifierGenerator | back to summary |
|---|---|
| public Generator createIdentifierGenerator(GenerationType generationType, String generatedValueGeneratorName, String generatorName, JavaType<?> javaType, Properties config, GeneratorDefinitionResolver definitionResolver) Create an
| |
| createIdentifierGenerator | back to summary |
|---|---|
| public Generator createIdentifierGenerator(String strategy, Type type, Properties parameters)
Deprecated since 6.0. use Given a strategy, retrieve the appropriate identifier generator instance.
| |
| getDialect | back to summary |
|---|---|
| public Dialect getDialect()
Deprecated for removal since 6.2. should be removed Get the dialect.
| |
| getIdentifierGeneratorClass | back to summary |
|---|---|
| public Class Deprecated since 6.0. with no replacement. See
Retrieve the class that will be used as the
| |