camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andre Piwoni (Created) (JIRA)" <>
Subject [jira] [Created] (CAMEL-5031) Dozer Type Conversion Does Not Work With Context Based Mappings (map-id)
Date Wed, 22 Feb 2012 22:27:49 GMT
Dozer Type Conversion Does Not Work With Context Based Mappings (map-id)

                 Key: CAMEL-5031
             Project: Camel
          Issue Type: Bug
          Components: bean-integration, camel-core
    Affects Versions: 2.9.0, 2.6.0
            Reporter: Andre Piwoni
            Priority: Minor

DozerTypeConverter utilizes DozerBeanMappper's method map(Object source, Class<T> destinationClass)
to convert objects. Unfortunately, this does not work for Dozer's context based mapping with
map-id because it requires call to source, Class<T> destinationClass,
String mapId).

Example below does not work without map-id, which is actually required for this type of mapping

<mapping  map-id="myMapping">
   <field copy-by-reference="true">
      <b key="complexTypeFieldKeyName">this</b>

DozerTypeConverterLoader has access to ClassMap and its map-id, if any, in order to construct
a lookup for map-id for a given conversion pair. This is tricky, however, since there can
be multiple mappings with different ids for the same conversion pair.
Interfaces for Dozer and Camel Conversion may not be fully compatible but least limitations
should be stated in documentation.

Andre Piwoni

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message