Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 328862

Summary: Add ability to unmarshal as collection of objects without requiring wrapper object
Product: z_Archived Reporter: Blaise Doughan <blaise.doughan>
Component: EclipselinkAssignee: Project Inbox <eclipselink.oxm-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Blaise Doughan CLA 2010-10-27 13:19:30 EDT
Currently given the following XML:

<root>
    <phone-number>...</phone-number>
    <phone-number>...</phone-number>
    <phone-number>...</phone-number>
    ...
</root>

A wrapper class needs to be created to facilitate the unmarshal such as:

@XmlRootElement
public class Root {

    @XmlElement(name="phone-number")
    private List<PhoneNumber> phoneNumbers;

}

It would be convenient to have a mechanism that could just return a collection of PhoneNumber objects.
Comment 1 Eclipse Webmaster CLA 2022-06-09 10:04:30 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink