Uses of Interface
org.hibernate.generator.Generator
-
Packages that use Generator Package Description org.hibernate.annotations A set of mapping annotations which extend the O/R mapping annotations defined by JPA.org.hibernate.engine.spi This package defines some central internal SPI abstractions used throughout the implementation of Hibernate.org.hibernate.envers.enhanced org.hibernate.generator This package defines an abstraction over all kinds of automatic value generation, including id generation and version number generation.org.hibernate.generator.internal org.hibernate.id This package and its subpackages, especiallyorg.hibernate.id.enhanced
, contain the built-in id generators, all of which implement eitherIdentifierGenerator
orPostInsertIdentifierGenerator
.org.hibernate.id.enhanced Enhanced/improved versions of table and sequence based identifier generators targeting portability and unified configuration.org.hibernate.id.factory Defines a service for creating id generators.org.hibernate.id.factory.internal Implementation of the SPI for id generator factories.org.hibernate.id.uuid Contains theUuidGenerator
.org.hibernate.internal An internal package containing implementations of central Hibernate APIs, mostly defined inorg.hibernate
.org.hibernate.mapping This package defines the Hibernate configuration-time mapping model.org.hibernate.metamodel.mapping Defines the runtime mapping metamodel, which describes the mapping of the application's domain model parts (entities, attributes) to relational database objects (tables, columns).org.hibernate.metamodel.mapping.internal org.hibernate.persister.entity This package abstracts persistence mechanisms for entities.org.hibernate.query.sqm.sql Package for the translation of SQM into SQL ASTorg.hibernate.tuple Most contracts here have been replaced by the new runtime mapping model.org.hibernate.tuple.entity org.hibernate.type A HibernateType
is a strategy for mapping a Java property type to a JDBC type or types. -
-
Uses of Generator in org.hibernate.annotations
Methods in org.hibernate.annotations that return types with arguments of type Generator Modifier and Type Method Description Class<? extends Generator>
generatedBy()
A class which implementsGenerator
.Class<? extends Generator>
type()
Deprecated.The type of identifier generator, a class implementingGenerator
or, more commonly,IdentifierGenerator
.Class<? extends Generator>
value()
A class which implementsGenerator
. -
Uses of Generator in org.hibernate.engine.spi
Methods in org.hibernate.engine.spi that return Generator Modifier and Type Method Description Generator
SessionFactoryDelegatingImpl. getGenerator(String rootEntityName)
Generator
SessionFactoryImplementor. getGenerator(String rootEntityName)
Get the identifier generator for the hierarchy -
Uses of Generator in org.hibernate.envers.enhanced
Classes in org.hibernate.envers.enhanced that implement Generator Modifier and Type Class Description class
OrderedSequenceGenerator
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.generator Modifier and Type Interface Description interface
AnnotationBasedGenerator<A extends Annotation>
AGenerator
which receives parameters from a custom generator annotation or id generator annotation.interface
BeforeExecutionGenerator
A generator that is called to produce a value just before a row is written to the database.interface
OnExecutionGenerator
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. -
Uses of Generator in org.hibernate.generator.internal
Classes in org.hibernate.generator.internal that implement Generator Modifier and Type Class Description class
CurrentTimestampGeneration
Value generation strategy which produces a timestamp using the databasecurrent_timestamp
function or the JVM current instant.class
GeneratedAlwaysGeneration
ForGeneratedColumn
.class
GeneratedGeneration
A fairly genericOnExecutionGenerator
which marks a property as generated in the database with semantics given explicitly by a@Generated
annotation.class
SourceGeneration
Deprecated.because bothSource
andhbm.xml
are deprecated, though this implementation is instructiveclass
TenantIdGeneration
A generator that produces the current tenant identifier to be assigned to theTenantId
property.class
VersionGeneration
-
Uses of Generator in org.hibernate.id
Subinterfaces of Generator in org.hibernate.id Modifier and Type Interface Description interface
BulkInsertionCapableIdentifierGenerator
Specialized contract forIdentifierGenerator
implementations capable of being used in conjunction with HQL insert statements.interface
IdentifierGenerator
A classic extension point from the very earliest days of Hibernate, this interface is no longer the only way to generate identifiers.interface
OptimizableGenerator
Commonality between sequence-based and table-based generatorsinterface
PersistentIdentifierGenerator
AnIdentifierGenerator
that requires creation of database objects.interface
PostInsertIdentifierGenerator
The counterpart toIdentifierGenerator
for values generated by the database.Classes in org.hibernate.id that implement Generator Modifier and Type Class Description class
AbstractPostInsertGenerator
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
AbstractUUIDGenerator
Deprecated.sinceUUIDHexGenerator
is deprecatedclass
Assigned
AnIdentifierGenerator
that returns the current identifier assigned to an instance.class
CompositeNestedGeneratedValueGenerator
For composite identifiers, defines a number of "nested" generations that need to happen to "fill" the identifier property(s).class
ForeignGenerator
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
GUIDGenerator
Deprecated.useUuidGenerator
class
IdentityGenerator
AnOnExecutionGenerator
that handlesIDENTITY
/"autoincrement" columns on those databases which support them.class
IncrementGenerator
AnIdentifierGenerator
that returns along
, constructed by counting from the maximum primary key value obtained by querying the table or tables at startup.class
SelectGenerator
A generator thatselect
s the just-insert
ed row to determine the column value assigned by the database.class
UUIDGenerator
Deprecated.useUuidGenerator
andUuidGenerator
insteadclass
UUIDHexGenerator
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 Generator Modifier and Type Class Description class
SequenceStyleGenerator
Generates identifier values based on a sequence-style database structure.class
TableGenerator
An enhanced version of table-based id generation. -
Uses of Generator in org.hibernate.id.factory
Methods in org.hibernate.id.factory that return Generator Modifier and Type Method Description Generator
IdentifierGeneratorFactory. createIdentifierGenerator(GenerationType generationType, String generatedValueGeneratorName, String generatorName, JavaType<?> javaType, Properties config, GeneratorDefinitionResolver definitionResolver)
Create anIdentifierGenerator
based on the given details.default Generator
IdentifierGeneratorFactory. createIdentifierGenerator(String strategy, Type type, Properties parameters)
Generator
IdentifierGeneratorFactory. createIdentifierGenerator(String strategy, Type type, GeneratorCreationContext creationContext, Properties parameters)
-
Uses of Generator in org.hibernate.id.factory.internal
Methods in org.hibernate.id.factory.internal that return Generator Modifier and Type Method Description Generator
StandardIdentifierGeneratorFactory. createIdentifierGenerator(String strategy, Type type, GeneratorCreationContext creationContext, Properties parameters)
Deprecated.static Generator
IdentifierGeneratorUtil. createLegacyIdentifierGenerator(SimpleValue simpleValue, IdentifierGeneratorFactory identifierGeneratorFactory, Dialect dialect, String defaultCatalog, String defaultSchema, RootClass rootClass)
-
Uses of Generator in org.hibernate.id.uuid
Classes in org.hibernate.id.uuid that implement Generator Modifier and Type Class Description class
UuidGenerator
-
Uses of Generator in org.hibernate.internal
Methods in org.hibernate.internal that return Generator Modifier and Type Method Description Generator
SessionFactoryImpl. getGenerator(String rootEntityName)
Deprecated. -
Uses of Generator in org.hibernate.mapping
Methods in org.hibernate.mapping that return Generator Modifier and Type Method Description Generator
Component. createGenerator(IdentifierGeneratorFactory identifierGeneratorFactory, Dialect dialect, RootClass rootClass)
Generator
GeneratorCreator. createGenerator(GeneratorCreationContext context)
Generator
IdentifierGeneratorCreator. createGenerator(CustomIdGeneratorCreationContext context)
Generator
KeyValue. createGenerator(IdentifierGeneratorFactory identifierGeneratorFactory, Dialect dialect, RootClass rootClass)
Generator
Property. createGenerator(RuntimeModelCreationContext context)
Generator
SimpleValue. createGenerator(IdentifierGeneratorFactory identifierGeneratorFactory, Dialect dialect, RootClass rootClass)
Constructors in org.hibernate.mapping with parameters of type Generator Constructor Description ValueGenerationPlan(Generator subgenerator, Setter injector, int propertyIndex)
-
Uses of Generator in org.hibernate.metamodel.mapping
Methods in org.hibernate.metamodel.mapping that return Generator Modifier and Type Method Description Generator
AttributeMapping. 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 Generator Modifier and Type Method Description Generator
AbstractSingularAttributeMapping. getGenerator()
Generator
PluralAttributeMappingImpl. getGenerator()
default Generator
SingleAttributeIdentifierMapping. getGenerator()
-
Uses of Generator in org.hibernate.persister.entity
Methods in org.hibernate.persister.entity that return Generator Modifier and Type Method Description Generator
AbstractEntityPersister. 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 Generator Constructor Description AdditionalInsertValues(Expression versionExpression, Expression discriminatorExpression, Generator identifierGenerator, BasicEntityIdentifierMapping identifierMapping)
-
Uses of Generator in org.hibernate.tuple
Subinterfaces of Generator in org.hibernate.tuple Modifier and Type Interface Description interface
AnnotationValueGeneration<A extends Annotation>
Deprecated, for removal: This API element is subject to removal in a future version.Replaced byAnnotationBasedGenerator
interface
ValueGeneration
Deprecated, for removal: This API element is subject to removal in a future version.Replaced byGenerator
Classes in org.hibernate.tuple that implement Generator Modifier and Type Class Description class
CreationTimestampGeneration
Deprecated.class
UpdateTimestampGeneration
Deprecated.class
VmValueGeneration
Deprecated.sinceGeneratorType
is deprecatedMethods in org.hibernate.tuple that return Generator Modifier and Type Method Description Generator
IdentifierAttribute. getGenerator()
Deprecated, for removal: This API element is subject to removal in a future version.Generator
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 Generator Modifier and Type Method Description static 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 Generator Constructor Description IdentifierProperty(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 Generator Modifier and Type Method Description Generator[]
EntityMetamodel. getGenerators()
Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of Generator in org.hibernate.type
Methods in org.hibernate.type that return Generator Modifier and Type Method Description @Remove Generator[]
ComponentType. getPropertyValueGenerationStrategies()
Deprecated.
-