Annotation Interface Id


@Documented @Retention(RUNTIME) @Target(FIELD) public @interface Id
Specifies the identifier of an entity.

The basic identifier types that have to be supported are URI, URL and String.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Generates the identifier on persist if it is null.
  • Element Details

    • generated

      boolean generated
      Generates the identifier on persist if it is null.
      Returns:
      Whether the id is generated
      Default:
      false