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

Mongo driver 3 codec facility might not be used

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.7 RC1 (Fowler)
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      It appears that to use new Codec facility introduced with java driver 3 one has to operate with org.bson.Document rather than com.mongodb.BasicDBObject.

      It looks like 1.7 is still using DBObject which is a problem for UUID serialization in "proper" rather than the "legacy" format as I was trying to do.

      Just confirmed that non-default codecs are ignored when serializing objects via mongotemplate but used when done through direct java driver api.

      Thanks
      Alex

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              cstrobl Christoph Strobl
              Reporter:
              bagerman Alexander Bagerman
              Last updater:
              Spring Issues
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: