Community
Participate
Working Groups
Not sure if this is a bug, or an enhancement. xml-access-methods, read-only, and write-only are implemented for *most* MOXy attribute mappings, but not for xml-element or xml-elements. One would think they would also apply there.
Hey Paul, xml-access-methods, read-only, and write-only are configurable for xml-element and xml-elements via XML metadata file or directly on the XMLModel classes. I assume from the bug title that you mean xml-element-ref and xml-element-refs. :-)
Yep. Words are starting to look the same to me. :)
Created attachment 181739 [details] Proposed fix
Created attachment 181740 [details] Supporting tests
Note that accessors and read/write flags set on an XmlElementRef are ignored when it is wrapped by an XmlElementRef(s). Fix checked in. Reviewed by: rick.barkhouse@oracle.com Tests: all unit tests pass as expected jaxb/externalizedmetadata/xmlelementref/XmlElementRefTestCases jaxb/externalizedmetadata/xmlelementrefs/XmlElementRefsTestCases
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink