Annotation Interface BatchSequence


@Retention(RUNTIME) @Target({FIELD,METHOD}) public @interface BatchSequence
Meta annotation to use BatchSequenceGenerator as an identifier generator.
Since:
3.8.1
Author:
Philippe Marschall
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Returns the catalog name of the sequence to use.
    int
    Returns how many sequence values to fetch at once.
    Returns the name of the sequence to use.
    Returns the catalog name of the sequence to use.
  • Element Details

    • name

      String name
      Returns the name of the sequence to use.

      If omitted (empty or null then ImplicitDatabaseObjectNamingStrategy is used to derive the name.

      Returns:
      the name of the sequence to use
      See Also:
      • MappingSettings.ID_DB_STRUCTURE_NAMING_STRATEGY
      Default:
      ""
    • fetchSize

      int fetchSize
      Returns how many sequence values to fetch at once.
      Returns:
      how many sequence values to fetch at once, must be positive
      Default:
      10
    • catalog

      String catalog
      Returns the catalog name of the sequence to use.
      Returns:
      the catalog name of the sequence to use
      Default:
      ""
    • schema

      String schema
      Returns the catalog name of the sequence to use.
      Returns:
      the catalog name of the sequence to use
      Default:
      ""