This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 209968 - New OXM Mapping - XML Choice (Single & Collection)
Summary: New OXM Mapping - XML Choice (Single & Collection)
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Matt MacIvor CLA
QA Contact:
URL:
Whiteboard: Fixed in 1.0M3
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-15 10:52 EST by Blaise Doughan CLA
Modified: 2022-06-09 10:13 EDT (History)
0 users

See Also:


Attachments
Changes to core project for choice mapping (59.56 KB, patch)
2007-12-12 16:08 EST, Matt MacIvor CLA
no flags Details | Diff
Changes to moxy project for choice mappings (12.34 KB, patch)
2007-12-12 16:10 EST, Matt MacIvor CLA
no flags Details | Diff
Changes to moxy test project for choice mappings. (85.47 KB, patch)
2007-12-12 16:10 EST, Matt MacIvor CLA
no flags Details | Diff
Changes to sdo project for choice mappings (11.94 KB, patch)
2007-12-12 16:11 EST, Matt MacIvor CLA
no flags Details | Diff
Changes to sdo test project for choice mappings (40.78 KB, patch)
2007-12-12 16:11 EST, Matt MacIvor CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Blaise Doughan CLA 2007-11-15 10:52:00 EST
This enhance request represents a new OXM mapping.  This mapping would allow for a single Java property to be mapped to multiple Java classes based on element name.   For instance the user could specify that for the contactInfo property an element named "address" corresponds to the Address.class while the element "phone-number" corresponds to an instance of String.class.  It would not be required that the target objects be related through inheritance.

This mapping would follow the OXM convention of having a single object and collection aware version of the mapping.

This feature is necessary to implement portions of the following specifications:

- SDO 2.1:  Section 9.3.2 Mapping of XSD Elements
- JAXB 2.0:  Support for javax.xml.bind.annotations.XMLElements annotation
Comment 1 Matt MacIvor CLA 2007-12-12 16:08:41 EST
Created attachment 85121 [details]
Changes to core project for choice mapping
Comment 2 Matt MacIvor CLA 2007-12-12 16:10:04 EST
Created attachment 85122 [details]
Changes to moxy project for choice mappings
Comment 3 Matt MacIvor CLA 2007-12-12 16:10:42 EST
Created attachment 85123 [details]
Changes to moxy test project for choice mappings.
Comment 4 Matt MacIvor CLA 2007-12-12 16:11:04 EST
Created attachment 85124 [details]
Changes to sdo project for choice mappings
Comment 5 Matt MacIvor CLA 2007-12-12 16:11:30 EST
Created attachment 85125 [details]
Changes to sdo test project for choice mappings
Comment 6 Matt MacIvor CLA 2008-01-17 11:10:40 EST
Created choice mappings and test cases for core OXM. 

Added support into the jaxb and sdo layers for substitution groups and choices and created test cases for these layers as well.
Comment 7 Eclipse Webmaster CLA 2022-06-09 10:13:55 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink