Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-8290

Pick up custom DBObject TypeConvertor

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.14.1
    • Fix Version/s: None
    • Component/s: camel-mongodb
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Reference "Modifying a shipped TypeConvertor" (http://camel.465427.n5.nabble.com/Modifying-a-shipped-TypeConverter-td5761945.html).

      When converting a POJO to mongodb, a Jackson ObjectMapper is used by default. ObjectMapper by default converts Date types into Long types by default.

      MongoDB of course has ISODate. In our case we had to provide a custom ObjectMapper switching off this Date to timestamp converter option. It would be nice if:

      1. This was the default for mongodb
      2. We could see this converter being picked up at runtime for use across the application.

        Attachments

          Activity

            People

            • Assignee:
              raulvk Raúl Kripalani
              Reporter:
              jmkgreen James Green
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: