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

Add support for BsonExtraElements when encoding/decoding POJOs

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.7.0
    • None
    • POJO
    • Needed

    Description

      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

      Attachments

        Activity

          People

            ross@mongodb.com Ross Lawley
            adam.harrison@mongodb.com Adam Harrison
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: