You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/09/02 08:58:00 UTC
[jira] [Resolved] (CAMEL-8290) Pick up custom DBObject TypeConvertor
[ https://issues.apache.org/jira/browse/CAMEL-8290?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-8290.
--------------------------------
Resolution: Abandoned
> Pick up custom DBObject TypeConvertor
> -------------------------------------
>
> Key: CAMEL-8290
> URL: https://issues.apache.org/jira/browse/CAMEL-8290
> Project: Camel
> Issue Type: Improvement
> Components: camel-mongodb
> Affects Versions: 2.14.1
> Reporter: James Green
> Priority: Minor
>
> 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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)