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 eitherIdentifierGeneratororPostInsertIdentifierGenerator.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 HibernateTypeis 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()The type of identifier generator, a class implementingGeneratoror, 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 GeneratorSessionFactoryDelegatingImpl. getGenerator(String rootEntityName)GeneratorSessionFactoryImplementor. 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 classOrderedSequenceGeneratorRevision 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 interfaceAnnotationBasedGenerator<A extends Annotation>AGeneratorwhich receives parameters from a custom generator annotation or id generator annotation.interfaceBeforeExecutionGeneratorA generator that is called to produce a value just before a row is written to the database.interfaceOnExecutionGeneratorA 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. -
Uses of Generator in org.hibernate.generator.internal
Classes in org.hibernate.generator.internal that implement Generator Modifier and Type Class Description classCurrentTimestampGenerationValue generation strategy which produces a timestamp using the databasecurrent_timestampfunction or the JVM current instant.classGeneratedAlwaysGenerationForGeneratedColumn.classGeneratedGenerationA fairly genericOnExecutionGeneratorwhich marks a property as generated in the database with semantics given explicitly by a@Generatedannotation.classSourceGenerationDeprecated.because bothSourceandhbm.xmlare deprecated, though this implementation is instructiveclassTenantIdGenerationA generator that produces the current tenant identifier to be assigned to theTenantIdproperty.classVersionGeneration -
Uses of Generator in org.hibernate.id
Subinterfaces of Generator in org.hibernate.id Modifier and Type Interface Description interfaceBulkInsertionCapableIdentifierGeneratorSpecialized contract forIdentifierGeneratorimplementations capable of being used in conjunction with HQL insert statements.interfaceIdentifierGeneratorA classic extension point from the very earliest days of Hibernate, this interface is no longer the only way to generate identifiers.interfaceOptimizableGeneratorCommonality between sequence-based and table-based generatorsinterfacePersistentIdentifierGeneratorAnIdentifierGeneratorthat requires creation of database objects.interfacePostInsertIdentifierGeneratorThe counterpart toIdentifierGeneratorfor values generated by the database.Classes in org.hibernate.id that implement Generator Modifier and Type Class Description classAbstractUUIDGeneratorDeprecated.sinceUUIDHexGeneratoris deprecatedclassAssignedAnIdentifierGeneratorthat returns the current identifier assigned to an instance.classCompositeNestedGeneratedValueGeneratorFor composite identifiers, defines a number of "nested" generations that need to happen to "fill" the identifier property(s).classForeignGeneratorDeprecated.This remains around as an implementation detail ofhbm.xmlmappings.classGUIDGeneratorDeprecated.useUuidGeneratorclassIdentityGeneratorAnOnExecutionGeneratorthat handlesIDENTITY/"autoincrement" columns on those databases which support them.classIncrementGeneratorAnIdentifierGeneratorthat returns along, constructed by counting from the maximum primary key value obtained by querying the table or tables at startup.classSelectGeneratorA generator thatselects the just-inserted row to determine the column value assigned by the database.classUUIDGeneratorDeprecated.useUuidGeneratorandUuidGeneratorinsteadclassUUIDHexGeneratorDeprecated.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 Generator Modifier and Type Class Description classSequenceStyleGeneratorGenerates identifier values based on a sequence-style database structure.classTableGeneratorAn 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 GeneratorIdentifierGeneratorFactory. createIdentifierGenerator(GenerationType generationType, String generatedValueGeneratorName, String generatorName, JavaType<?> javaType, Properties config, GeneratorDefinitionResolver definitionResolver)Create anIdentifierGeneratorbased on the given details.GeneratorIdentifierGeneratorFactory. createIdentifierGenerator(String strategy, Type type, Properties parameters)Methods in org.hibernate.id.factory that return types with arguments of type Generator Modifier and Type Method Description Class<? extends Generator>IdentifierGeneratorFactory. getIdentifierGeneratorClass(String strategy)Deprecated.with no replacement. -
Uses of Generator in org.hibernate.id.factory.internal
Methods in org.hibernate.id.factory.internal that return Generator Modifier and Type Method Description GeneratorStandardIdentifierGeneratorFactory. createIdentifierGenerator(String strategy, Type type, Properties parameters)static GeneratorIdentifierGeneratorUtil. createLegacyIdentifierGenerator(SimpleValue simpleValue, IdentifierGeneratorFactory identifierGeneratorFactory, Dialect dialect, String defaultCatalog, String defaultSchema, RootClass rootClass)Methods in org.hibernate.id.factory.internal that return types with arguments of type Generator Modifier and Type Method Description Class<? extends Generator>StandardIdentifierGeneratorFactory. getIdentifierGeneratorClass(String strategy) -
Uses of Generator in org.hibernate.id.uuid
Classes in org.hibernate.id.uuid that implement Generator Modifier and Type Class Description classUuidGeneratorGeneratesUUIDs. -
Uses of Generator in org.hibernate.internal
Methods in org.hibernate.internal that return Generator Modifier and Type Method Description GeneratorSessionFactoryImpl. getGenerator(String rootEntityName)Deprecated. -
Uses of Generator in org.hibernate.mapping
Methods in org.hibernate.mapping that return Generator Modifier and Type Method Description GeneratorComponent. createGenerator(IdentifierGeneratorFactory identifierGeneratorFactory, Dialect dialect, RootClass rootClass)GeneratorGeneratorCreator. createGenerator(GeneratorCreationContext context)GeneratorIdentifierGeneratorCreator. createGenerator(CustomIdGeneratorCreationContext context)GeneratorKeyValue. createGenerator(IdentifierGeneratorFactory identifierGeneratorFactory, Dialect dialect, RootClass rootClass)GeneratorProperty. createGenerator(RuntimeModelCreationContext context)GeneratorSimpleValue. createGenerator(IdentifierGeneratorFactory identifierGeneratorFactory, Dialect dialect, RootClass rootClass)Constructors in org.hibernate.mapping with parameters of type Generator Constructor Description ValueGenerationPlan(Generator subgenerator, Setter injector) -
Uses of Generator in org.hibernate.metamodel.mapping
Methods in org.hibernate.metamodel.mapping that return Generator Modifier and Type Method Description GeneratorAttributeMapping. 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 GeneratorAbstractSingularAttributeMapping. getGenerator()GeneratorPluralAttributeMappingImpl. getGenerator()default GeneratorSingleAttributeIdentifierMapping. getGenerator() -
Uses of Generator in org.hibernate.persister.entity
Methods in org.hibernate.persister.entity that return Generator Modifier and Type Method Description GeneratorAbstractEntityPersister. getGenerator()default GeneratorEntityPersister. 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 interfaceAnnotationValueGeneration<A extends Annotation>Deprecated, for removal: This API element is subject to removal in a future version.Replaced byAnnotationBasedGeneratorinterfaceValueGenerationDeprecated, for removal: This API element is subject to removal in a future version.Replaced byGeneratorClasses in org.hibernate.tuple that implement Generator Modifier and Type Class Description classCreationTimestampGenerationDeprecated.classUpdateTimestampGenerationDeprecated.classVmValueGenerationDeprecated.sinceGeneratorTypeis deprecatedMethods in org.hibernate.tuple that return Generator Modifier and Type Method Description GeneratorIdentifierAttribute. getGenerator()Deprecated, for removal: This API element is subject to removal in a future version.GeneratorIdentifierProperty. 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 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 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.
-