Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-4426

Add support for BsonExtraElements when encoding/decoding POJOs

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

      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@mongodb.com Ross Lawley
            Reporter:
            adam.harrison@mongodb.com Adam Harrison
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: