Annotation Interface PersistField


@Target(FIELD) @Retention(RUNTIME) public @interface PersistField
This annotation is used to mark a field that should be persisted. The value of the annotation is the key to use for the stored field. If the value is not set, the field name will be used as the key.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The key to use for the stored field if the value is not set, the field name will be used as the key.
  • Element Details

    • value

      String value
      The key to use for the stored field if the value is not set, the field name will be used as the key.
      Returns:
      The key to use for the stored field.
      Default:
      ""