Bug 276189 - [Workbench] Add XMLListConverter support to XMLCompositeDirectCollectionMapping
Summary: [Workbench] Add XMLListConverter support to XMLCompositeDirectCollectionMapping
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: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords: Documentation
Depends on:
Blocks:
 
Reported: 2009-05-13 16:28 EDT by Rick Barkhouse CLA
Modified: 2022-06-09 10:32 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 Rick Barkhouse CLA 2009-05-13 16:28:07 EDT
Support should be added to the Workbench to allow the user to configure an XMLListConverter on their XMLCompositeDirectCollectionMappings, in order to map to a list of lists.  In code this looks like:

XMLCompositeDirectCollectionMapping itemsMapping = new
   XMLCompositeDirectCollectionMapping();
itemsMapping.setAttributeName("items");
itemsMapping.setXPath("item/text()");
itemsMapping.setFieldElementClass(ArrayList.class);
itemsMapping.useCollectionClass(ArrayList.class);

XMLListConverter listConverter = new XMLListConverter();
listConverter.setObjectClass(Double.class);
itemsMapping.setValueConverter(listConverter);


See bug 275374 for more information.
Comment 1 Eclipse Webmaster CLA 2022-06-09 10:32:24 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink