Community
Participate
Working Groups
When processing a property tagged with an XmlElementRef annotation, the EclipseLink MappingsGenerator will create an XmlChoiceObjectMapping. In the case that the target of this XmlElementRef is a JAXBElement<byte[]>, the choice mapping will create an XMLDirectMapping to handle this under the covers. Unfortunately an XMLDirectMapping can only handle inline binary from byte[] and not attachments. In order to handle attachments in this case XMLChoiceObjectMapping needs to support nested XMLBinaryDataMappings or MappingsGenerator needs to generate a different mapping in this case.
Created attachment 183422 [details] Proposed Fix and Test Case
Proposed fix checked in to SVN Reviewed by David McCann
Closing as fixed
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink