Menu

#388 DurationImpl to Duration Mapping

Dozer v5.3.3
open
nobody
None
2
2016-09-15
2016-09-15
Deepu James
No

I am trying to convert com.sun.org.apache.xerces.internal.jaxp.datatype.DurationImpl to javax.xml.datatype.Duration. When i try to map the fields, I get this error:

MapId: null
Type: null
Source parent class: expedia.supply.provider.air.v3.SegmentType
Source field name: accumulatedDuration
Source field type: class com.sun.org.apache.xerces.internal.jaxp.datatype.DurationImpl
Source field value: P0Y0M0DT1H15M0.000S
Dest parent class: expedia.supply.provider.air.v1.SegmentType
Dest field name: accumulatedDuration
Dest field type: javax.xml.datatype.Duration

Creating a custom mapper could be an option here, but DurationImpl does not have public access. The version of dozer i am using in 5.5.1.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB