Annotation Interface SurrealName


@Retention(RUNTIME) @Target(FIELD) public @interface SurrealName
Overrides the SurrealDB object key used when converting a Java field.

Unannotated fields keep the historical behavior and use the Java field name. For records, annotate the record component; the field-target annotation is available on the generated backing field used by the converter.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The SurrealDB object key to use for this field.
  • Element Details

    • value

      String value
      The SurrealDB object key to use for this field.
      Returns:
      a non-blank SurrealDB object key