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

Handle mismatches between document fields and object fields

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.0
    • Affects Version/s: None
    • Component/s: Codecs
    • None

      What do we do when we find fields in the documents that aren't found in the Java objects we're deserializing in to? Options include:

      1. Skipping that document field
      2. Throwing an exception
      3. Dumping extra fields in to an optional BsonDocument on the object to hold these extra fields.

            Assignee:
            ross@mongodb.com Ross Lawley
            Reporter:
            justin.lee Justin Lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: