Annotation Interface EncodeNulls


@Documented @Inherited @Retention(RUNTIME) @Target({FIELD,TYPE}) public @interface EncodeNulls
If you need nulls to be written out to the database, use this annotation either at pojo class level or at field level. Please note: If you set EncodeNulls=false and decode entities with undefined values within the mongo database, the DecodeUndefinedHandlingStrategy will influence the decoded value Global behaviour can be set during registration of PojoCodecProvider.Builder.encodeNulls(boolean)
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
     
  • Element Details

    • value

      boolean value
      Default:
      true