Annotation Interface GeneratedValue


@Retention(RUNTIME) @Target({METHOD,FIELD,ANNOTATION_TYPE}) @Documented public @interface GeneratedValue
Designates a property as a generated value. Typically not used directly but instead mapped to via annotation such as javax.persistence.GeneratedValue.
Since:
1.0.0
Author:
graemerocher
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    The type of generation.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    In the case of sequence generators if you wish to define statement that creates the sequence, you can do so here.
    In the case of sequence generators if you wish to alter the name of the sequence generator do so with this member.
    The generation type.
  • Element Details

    • value

      The generation type.
      Returns:
      The generation type.
      Default:
      AUTO
    • definition

      String definition
      In the case of sequence generators if you wish to define statement that creates the sequence, you can do so here.
      Returns:
      The sequence definition
      Default:
      ""
    • ref

      String ref
      In the case of sequence generators if you wish to alter the name of the sequence generator do so with this member.
      Returns:
      The name to use to reference the sequence generator
      Default:
      ""