Community
Participate
Working Groups
For the following model class: import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; @XmlRootElement public class Root { private List<Test> tests = new ArrayList<Test>(); @XmlJavaTypeAdapter(ListXmlAdapter.class) public List<Test> getTests() { return tests; } public void setTests(List<Test> tests) { this.tests = tests; } } We are creating an XMLCompositeObjectMapping for the tests property instead of an XMLDirectMapping.
Created attachment 181134 [details] MOXy - Fix
Created attachment 181299 [details] MOXy - Test Cases
Created attachment 181300 [details] MOXy - Fix
Fix checked into trunk at rev: 8381 Fix by: Matt MacIvor Reviewed and committed by: Blaise Doughan
Fixed as per above comments.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink