Class OrderedSequenceGenerator

java.lang.Object
org.hibernate.id.enhanced.SequenceStyleGenerator
org.hibernate.envers.enhanced.OrderedSequenceGenerator
All Implemented Interfaces:
Serializable, org.hibernate.boot.model.relational.ExportableProducer, org.hibernate.generator.BeforeExecutionGenerator, org.hibernate.generator.Generator, org.hibernate.id.BulkInsertionCapableIdentifierGenerator, org.hibernate.id.Configurable, org.hibernate.id.IdentifierGenerator, org.hibernate.id.OptimizableGenerator, org.hibernate.id.PersistentIdentifierGenerator

public class OrderedSequenceGenerator extends org.hibernate.id.enhanced.SequenceStyleGenerator
Revision number generator has to produce values in ascending order (gaps may occur).

This generator is only applicable when USE_REVISION_ENTITY_WITH_NATIVE_ID is false in the bootstrapping configuration properties.

See Also:
  • Field Summary

    Fields declared in class org.hibernate.id.enhanced.SequenceStyleGenerator

    ALT_SEQUENCE_PARAM, CONFIG_SEQUENCE_PER_ENTITY_SUFFIX, DEF_SEQUENCE_SUFFIX, DEF_VALUE_COLUMN, FORCE_TBL_PARAM, SEQUENCE_PARAM, VALUE_COLUMN_PARAM

    Fields declared in interface org.hibernate.id.IdentifierGenerator

    CONTRIBUTOR_NAME, ENTITY_NAME, GENERATOR_NAME, JPA_ENTITY_NAME

    Fields declared in interface org.hibernate.id.OptimizableGenerator

    DEFAULT_INCREMENT_SIZE, DEFAULT_INITIAL_VALUE, IMPLICIT_NAME_BASE, INCREMENT_PARAM, INITIAL_PARAM, OPT_PARAM

    Fields declared in interface org.hibernate.id.PersistentIdentifierGenerator

    CATALOG, IDENTIFIER_NORMALIZER, OPTIONS, PK, SCHEMA, TABLE, TABLES
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods declared in class org.hibernate.id.enhanced.SequenceStyleGenerator

    applyConfiguration, buildDatabaseStructure, buildSequenceStructure, buildTableStructure, configure, determineAdjustedIncrementSize, determineBulkInsertionIdentifierGenerationSelectFragment, determineIncrementSize, determineInitialValue, determineOptimizationStrategy, determineSequenceName, determineValueColumnName, generate, getDatabaseStructure, getIdentifierType, getOptimizer, initialize, isPhysicalSequence, registerExportables, supportsBulkInsertionIdentifierGeneration

    Methods declared in interface org.hibernate.generator.BeforeExecutionGenerator

    generatedOnExecution

    Methods declared in interface org.hibernate.generator.Generator

    allowAssignedIdentifiers, allowMutation, generatedBeforeExecution, generatedOnExecution, generatesOnForceIncrement, generatesOnInsert, generatesOnUpdate, generatesSometimes

    Methods declared in interface org.hibernate.id.IdentifierGenerator

    configure, generate, getEventTypes
  • Constructor Details

    • OrderedSequenceGenerator

      public OrderedSequenceGenerator()