Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 328862 - Add ability to unmarshal as collection of objects without requiring wrapper object
Summary: Add ability to unmarshal as collection of objects without requiring wrapper o...
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-27 13:19 EDT by Blaise Doughan CLA
Modified: 2022-06-09 10:04 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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