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 givenBeanContainerif 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 aGeneratorclass.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 voidGeneratorBinder.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 TypeClassDescriptionclassRevision 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 TypeInterfaceDescriptioninterfaceAnnotationBasedGenerator<A extends Annotation>AGeneratorwhich receives parameters from a custom generator annotation or id generator annotation.interfaceA generator that is called to produce a value just before a row is written to the database.interfaceA 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 SQLinsertorupdatestatement 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 TypeClassDescriptionclassValue generation strategy which produces a timestamp using the databasecurrent_timestampfunction or the JVM current instant.classForGeneratedColumn.classA fairly genericOnExecutionGeneratorwhich marks a property as generated in the database with semantics given explicitly by a@Generatedannotation.classDeprecated.because bothSourceandhbm.xmlare deprecated, though this implementation is instructiveclassA generator that produces the current tenant identifier to be assigned to theTenantIdproperty.class -
Uses of Generator in org.hibernate.id
Subinterfaces of Generator in org.hibernate.idModifier and TypeInterfaceDescriptioninterfaceSpecialized contract forIdentifierGeneratorimplementations capable of being used in conjunction with HQL insert statements.interfaceA classic extension point from the very earliest days of Hibernate, this interface is no longer the only way to generate identifiers.interfaceCommonality between sequence-based and table-based generatorsinterfaceAnIdentifierGeneratorthat requires creation of database objects.interfaceThe counterpart toIdentifierGeneratorfor values generated by the database.Classes in org.hibernate.id that implement GeneratorModifier and TypeClassDescriptionclassDeprecated, for removal: This API element is subject to removal in a future version.Subclasses should now directly inheritPostInsertIdentifierGeneratorandBulkInsertionCapableIdentifierGenerator, or even better, simply implementOnExecutionGeneratordirectly.classDeprecated.sinceUUIDHexGeneratoris deprecatedclassDeprecated, for removal: This API element is subject to removal in a future version.replaced byAssignedclassFor composite identifiers, defines a number of "nested" generations that need to happen to "fill" the identifier property(s).classDeprecated, for removal: This API element is subject to removal in a future version.This remains around as an implementation detail ofhbm.xmlmappings.classDeprecated.useUuidGeneratorclassAnOnExecutionGeneratorthat handlesIDENTITY/"autoincrement" columns on those databases which support them.classAnIdentifierGeneratorthat returns along, constructed by counting from the maximum primary key value obtained by querying the table or tables at startup.classGenerator that picks a strategy based on the dialect.classA generator thatselects the just-inserted row to determine the column value assigned by the database.classDeprecated.useUuidGeneratorandUuidGeneratorinsteadclassDeprecated.This remains around as an implementation detail ofhbm.xmlmappings. -
Uses of Generator in org.hibernate.id.enhanced
Classes in org.hibernate.id.enhanced that implement GeneratorModifier and TypeClassDescriptionclassGenerates identifier values based on a sequence-style database structure.classAn 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 GeneratorSingleAttributeIdentifierMapping.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 GeneratorEntityPersister.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 IdentifierPropertyPropertyFactory.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.