Uploaded image for project: 'Spring Data MongoDB'
  1. Spring Data MongoDB
  2. DATAMONGO-2043

MappingMongoConverter.write(…) does not consider Document a native type and adds _class attribute

    XMLWordPrintable

    Details

      Description

      template.insert(new org.bson.Document("_id", UUID.randomUUID().toString()), "foobar");
      

      results in the following, having a _class attribute which should not be present.

      {
          "_id" : "f042173d-81bc-453b-b690-ff5ac45cdcbe",
          "_class" : "org.bson.Document"
      }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              cstrobl Christoph Strobl
              Reporter:
              cstrobl Christoph Strobl
              Last updater:
              Oliver Drotbohm
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: