Annotation Interface Sequence


@Retention(RUNTIME) @Target(FIELD) @Documented public @interface Sequence
Specify the sequence from which the value for the Id should be fetched.
Since:
3.5
Author:
Mikhail Polivakha
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Schema where the sequence resides.
    Alias for value()
    The name of the sequence from which the id should be fetched
  • Element Details

    • value

      @AliasFor("sequence") String value
      The name of the sequence from which the id should be fetched
      Default:
      ""
    • sequence

      @AliasFor("value") String sequence
      Alias for value()
      Default:
      ""
    • schema

      String schema
      Schema where the sequence resides. For instance, in Oracle databases the schema and user are often used interchangeably, so the schema attribute may represent an Oracle user as well.

      The final name of the sequence to be queried for the next value will be constructed by the concatenation of schema and sequence:

      schema().sequence()
      
      Default:
      ""