Annotation Interface BatchSequence


@Retention(RUNTIME) @Target({FIELD,METHOD}) public @interface BatchSequence
Meta annotation to use BatchSequenceGenerator as an identifier generator.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Returns the name of the sequence to use.
  • Optional Element Summary

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

    • name

      String name
      Returns the name of the sequence to use.
      Returns:
      the name of the sequence to use
    • 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