Annotation Interface PrimaryKey


@Documented @Retention(RUNTIME) @Target(FIELD) public @interface PrimaryKey
Marks the field of the class as the primary key field.
  • Nested Class Summary

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

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Configuring the primary key is auto-increment, UUID or input.
  • Element Details

    • keyType

      Configuring the primary key is auto-increment, UUID or input.
      Returns:
      Key type.
      Default:
      AUTO