Add support for BsonExtraElements when encoding/decoding POJOs

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: POJO
    • None
    • Needed
    • None
    • None
    • None
    • None
    • None
    • None

      The Java driver should support BsonExtraElements annotation on POJOs. This flag would provide the ability to leave any extra document elements untouched when performing encoding and decoding.

      This feature can be helpful in when performing schema migrations, as it may reduce the need update applications to handle different versions of schemas.

      This flag already exists in other drivers such as C#: https://mongodb.github.io/mongo-csharp-driver/2.14/apidocs/html/T_MongoDB_Bson_Serialization_Attributes_BsonExtraElementsAttribute.htm

            Assignee:
            Ross Lawley
            Reporter:
            Adam Harrison
            None
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: