Annotation Interface BsonProperty


@Documented @Target(RECORD_COMPONENT) @Retention(RUNTIME) public @interface BsonProperty
An annotation that configures a record component.
Since:
4.6
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The field name of the record component.
  • Element Details

    • value

      String value
      The field name of the record component.
      Returns:
      the field name to use for the record component
      Default:
      ""