Annotation Interface EntitySequence


@Target({METHOD,FIELD}) @Retention(RUNTIME) public @interface EntitySequence
Annotation for configuring database sequence-based ID generation for JPA entities.
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Name of the sequence
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    Allocation size (>0 to override config)
  • Element Details

    • name

      String name
      Name of the sequence
    • allocationSize

      int allocationSize
      Allocation size (>0 to override config)
      Default:
      -1