Annotation Interface DocumentFieldRename


@Documented @Target(FIELD) @Retention(RUNTIME) public @interface DocumentFieldRename
Annotation to rename a field during tree serialisation or deserialization. While this annotation should be supported by all document type implementations, there is no guarantee that this is the case.
Since:
4.0
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Get the alternative field name that should be used when serialising or deserializing the annotated field.
  • Element Details

    • value

      Get the alternative field name that should be used when serialising or deserializing the annotated field.
      Returns:
      the alternative field name that should be used when serialising or deserializing the annotated field.