Uses of Interface
org.hibernate.generator.Generator
Packages that use Generator
Package
Description
This package defines some central internal SPI abstractions
used throughout the implementation of Hibernate.
This package defines an abstraction over all kinds of automatic
value generation, including id generation and version number
generation.
This package and its subpackages, especially
org.hibernate.id.enhanced
,
contain the built-in id generators, all of which implement either
IdentifierGenerator
or
PostInsertIdentifierGenerator
.Enhanced/improved versions of table and sequence based identifier generators
targeting portability and unified configuration.
Contains the
UuidGenerator
.An internal package containing implementations of central Hibernate APIs,
mostly defined in
org.hibernate
.This package defines the Hibernate configuration-time mapping model.
Defines the runtime mapping metamodel, which describes the mapping
of the application's domain model parts (entities, attributes) to
relational database objects (tables, columns).
An SPI supporting custom instantiation of
entity instances and
embeddable objects.
This package abstracts persistence mechanisms for entities.
Package for the translation of SQM into SQL AST
Most contracts here have been replaced by the new runtime
mapping model.
-
Uses of Generator in org.hibernate.boot.model.internal
Methods in org.hibernate.boot.model.internal with type parameters of type GeneratorModifier and TypeMethodDescriptionstatic <T extends Generator>
TGeneratorBinder.instantiateGenerator
(BeanContainer beanContainer, Class<T> generatorClass) Instantiate aGenerator
, using the givenBeanContainer
if any, or by calling the default constructor otherwise.Methods in org.hibernate.boot.model.internal that return types with arguments of type GeneratorModifier and TypeMethodDescriptionGeneratorStrategies.generatorClass
(String strategy, SimpleValue idValue) Interpret an "old" generator strategy name as aGenerator
class.GeneratorStrategies.mapLegacyNamedGenerator
(String strategy, MetadataBuildingContext buildingContext) GeneratorStrategies.mapLegacyNamedGenerator
(String strategy, Dialect dialect) GeneratorStrategies.mapLegacyNamedGenerator
(String strategy, SimpleValue idValue) Methods in org.hibernate.boot.model.internal with parameters of type GeneratorModifier and TypeMethodDescriptionstatic void
GeneratorBinder.callConfigure
(GeneratorCreationContext creationContext, Generator generator, Map<String, Object> configuration, Value value) static <A extends Annotation>
voidGeneratorBinder.callInitialize
(A annotation, org.hibernate.models.spi.MemberDetails memberDetails, GeneratorCreationContext creationContext, Generator generator) static <A extends Annotation>
voidGeneratorAnnotationHelper.prepareForUse
(Generator generator, A annotation, org.hibernate.models.spi.MemberDetails idMember, Consumer<Properties> configBaseline, BiConsumer<A, Properties> configExtractor, GeneratorCreationContext creationContext) Prepares a generator for use by handling its various potential means of "configuration". -
Uses of Generator in org.hibernate.boot.models.annotations.internal
Methods in org.hibernate.boot.models.annotations.internal that return types with arguments of type GeneratorModifier and TypeMethodDescriptionValueGenerationTypeAnnotation.generatedBy()
GenericGeneratorAnnotation.type()
IdGeneratorTypeAnnotation.value()
Method parameters in org.hibernate.boot.models.annotations.internal with type arguments of type Generator -
Uses of Generator in org.hibernate.engine.spi
Methods in org.hibernate.engine.spi that return GeneratorModifier and TypeMethodDescriptionSessionFactoryDelegatingImpl.getGenerator
(String rootEntityName) Deprecated.SessionFactoryImplementor.getGenerator
(String rootEntityName) Deprecated, for removal: This API element is subject to removal in a future version.Only used in one place, will be removed -
Uses of Generator in org.hibernate.envers.enhanced
Classes in org.hibernate.envers.enhanced that implement GeneratorModifier and TypeClassDescriptionclass
Revision number generator has to produce values in ascending order (gaps may occur). -
Uses of Generator in org.hibernate.generator
Subinterfaces of Generator in org.hibernate.generatorModifier and TypeInterfaceDescriptioninterface
AnnotationBasedGenerator<A extends Annotation>
AGenerator
which receives parameters from a custom generator annotation or id generator annotation.interface
A generator that is called to produce a value just before a row is written to the database.interface
A generator which produces a new value by actually going ahead and writing a row to the database, then retrieving the value which was generated by the database itself as a side effect of the SQLinsert
orupdate
statement which wrote the row.Classes in org.hibernate.generator that implement Generator -
Uses of Generator in org.hibernate.generator.internal
Classes in org.hibernate.generator.internal that implement GeneratorModifier and TypeClassDescriptionclass
Value generation strategy which produces a timestamp using the databasecurrent_timestamp
function or the JVM current instant.class
ForGeneratedColumn
.class
A fairly genericOnExecutionGenerator
which marks a property as generated in the database with semantics given explicitly by a@Generated
annotation.class
Deprecated.because bothSource
andhbm.xml
are deprecated, though this implementation is instructiveclass
A generator that produces the current tenant identifier to be assigned to theTenantId
property.class
-
Uses of Generator in org.hibernate.id
Subinterfaces of Generator in org.hibernate.idModifier and TypeInterfaceDescriptioninterface
Specialized contract forIdentifierGenerator
implementations capable of being used in conjunction with HQL insert statements.interface
A classic extension point from the very earliest days of Hibernate, this interface is no longer the only way to generate identifiers.interface
Commonality between sequence-based and table-based generatorsinterface
AnIdentifierGenerator
that requires creation of database objects.interface
The counterpart toIdentifierGenerator
for values generated by the database.Classes in org.hibernate.id that implement GeneratorModifier and TypeClassDescriptionclass
Deprecated, for removal: This API element is subject to removal in a future version.Subclasses should now directly inheritPostInsertIdentifierGenerator
andBulkInsertionCapableIdentifierGenerator
, or even better, simply implementOnExecutionGenerator
directly.class
Deprecated.sinceUUIDHexGenerator
is deprecatedclass
Deprecated, for removal: This API element is subject to removal in a future version.replaced byAssigned
class
For composite identifiers, defines a number of "nested" generations that need to happen to "fill" the identifier property(s).class
Deprecated, for removal: This API element is subject to removal in a future version.This remains around as an implementation detail ofhbm.xml
mappings.class
Deprecated.useUuidGenerator
class
AnOnExecutionGenerator
that handlesIDENTITY
/"autoincrement" columns on those databases which support them.class
AnIdentifierGenerator
that returns along
, constructed by counting from the maximum primary key value obtained by querying the table or tables at startup.class
Generator that picks a strategy based on the dialect.class
A generator thatselect
s the just-insert
ed row to determine the column value assigned by the database.class
Deprecated.useUuidGenerator
andUuidGenerator
insteadclass
Deprecated.This remains around as an implementation detail ofhbm.xml
mappings. -
Uses of Generator in org.hibernate.id.enhanced
Classes in org.hibernate.id.enhanced that implement GeneratorModifier and TypeClassDescriptionclass
Generates identifier values based on a sequence-style database structure.class
An enhanced version of table-based id generation. -
Uses of Generator in org.hibernate.id.uuid
Classes in org.hibernate.id.uuid that implement Generator -
Uses of Generator in org.hibernate.internal
Methods in org.hibernate.internal that return GeneratorModifier and TypeMethodDescriptionSessionFactoryImpl.getGenerator
(String rootEntityName) Deprecated. -
Uses of Generator in org.hibernate.mapping
Methods in org.hibernate.mapping that return GeneratorModifier and TypeMethodDescriptionComponent.createGenerator
(Dialect dialect, RootClass rootClass, Property property, GeneratorSettings defaults) GeneratorCreator.createGenerator
(GeneratorCreationContext context) Create the generator.KeyValue.createGenerator
(Dialect dialect, RootClass rootClass) Deprecated, for removal: This API element is subject to removal in a future version.No longer called, except from tests.KeyValue.createGenerator
(Dialect dialect, RootClass rootClass, Property property, GeneratorSettings defaults) Property.createGenerator
(RuntimeModelCreationContext context) SimpleValue.createGenerator
(Dialect dialect, RootClass rootClass) Deprecated, for removal: This API element is subject to removal in a future version.SimpleValue.createGenerator
(Dialect dialect, RootClass rootClass, Property property, GeneratorSettings defaults) -
Uses of Generator in org.hibernate.metamodel.mapping
Methods in org.hibernate.metamodel.mapping that return GeneratorModifier and TypeMethodDescriptionAttributeMapping.getGenerator()
The value generation strategy to use for this attribute. -
Uses of Generator in org.hibernate.metamodel.mapping.internal
Methods in org.hibernate.metamodel.mapping.internal that return GeneratorModifier and TypeMethodDescriptionAbstractSingularAttributeMapping.getGenerator()
PluralAttributeMappingImpl.getGenerator()
default Generator
SingleAttributeIdentifierMapping.getGenerator()
-
Uses of Generator in org.hibernate.metamodel.spi
Methods in org.hibernate.metamodel.spi that return types with arguments of type Generator -
Uses of Generator in org.hibernate.persister.entity
Methods in org.hibernate.persister.entity that return GeneratorModifier and TypeMethodDescriptionAbstractEntityPersister.getGenerator()
default Generator
EntityPersister.getGenerator()
-
Uses of Generator in org.hibernate.query.sqm.sql
Constructors in org.hibernate.query.sqm.sql with parameters of type GeneratorModifierConstructorDescriptionAdditionalInsertValues
(Expression versionExpression, Expression discriminatorExpression, Generator identifierGenerator, BasicEntityIdentifierMapping identifierMapping) -
Uses of Generator in org.hibernate.tuple
Methods in org.hibernate.tuple that return GeneratorModifier and TypeMethodDescriptionIdentifierAttribute.getGenerator()
Deprecated, for removal: This API element is subject to removal in a future version.IdentifierProperty.getGenerator()
Deprecated, for removal: This API element is subject to removal in a future version.Methods in org.hibernate.tuple with parameters of type GeneratorModifier and TypeMethodDescriptionstatic IdentifierProperty
PropertyFactory.buildIdentifierAttribute
(PersistentClass mappedEntity, Generator generator) Deprecated, for removal: This API element is subject to removal in a future version.Generates the attribute representation of the identifier for a given entity mapping.Constructors in org.hibernate.tuple with parameters of type GeneratorModifierConstructorDescriptionIdentifierProperty
(String name, Type type, boolean embedded, Generator identifierGenerator) Deprecated, for removal: This API element is subject to removal in a future version.Construct a non-virtual identifier property.IdentifierProperty
(Type type, boolean embedded, boolean hasIdentifierMapper, Generator identifierGenerator) Deprecated, for removal: This API element is subject to removal in a future version.Construct a virtual IdentifierProperty. -
Uses of Generator in org.hibernate.tuple.entity
Methods in org.hibernate.tuple.entity that return GeneratorModifier and TypeMethodDescriptionEntityMetamodel.getGenerators()
Deprecated, for removal: This API element is subject to removal in a future version.Constructor parameters in org.hibernate.tuple.entity with type arguments of type GeneratorModifierConstructorDescriptionEntityMetamodel
(PersistentClass persistentClass, EntityPersister persister, RuntimeModelCreationContext creationContext, Function<String, Generator> generatorSupplier) Deprecated, for removal: This API element is subject to removal in a future version.