Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325366 - JAXB: Need support for relationship mappings with composite keys
Summary: JAXB: Need support for relationship mappings with composite keys
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 317962
  Show dependency tree
 
Reported: 2010-09-15 11:18 EDT by David McCann CLA
Modified: 2022-06-09 10:27 EDT (History)
0 users

See Also:


Attachments
Proposed XSD change (3.49 KB, patch)
2010-09-15 11:20 EDT, David McCann CLA
no flags Details | Diff
Proposed fix for XML metadata (57.33 KB, patch)
2010-09-15 11:21 EDT, David McCann CLA
no flags Details | Diff
Proposed fix for annotations (9.82 KB, patch)
2010-09-15 11:21 EDT, David McCann CLA
no flags Details | Diff
Supporting tests - XML metadata (47.32 KB, patch)
2010-09-15 11:22 EDT, David McCann CLA
no flags Details | Diff
Supporting tests - annotations (25.20 KB, patch)
2010-09-15 11:22 EDT, David McCann CLA
no flags Details | Diff
Proposed XSD change (2.81 KB, patch)
2010-09-15 12:37 EDT, David McCann CLA
no flags Details | Diff
Proposed fix for XML metadata (55.55 KB, patch)
2010-09-15 12:38 EDT, David McCann CLA
no flags Details | Diff
Supporting tests - XML metadata (47.01 KB, patch)
2010-09-15 12:38 EDT, David McCann CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David McCann CLA 2010-09-15 11:18:11 EDT
We need to add support for relationship mappings with composite keys - @XmlKey / xml-key, and @XmlJoinNode(s) / xml-join-node(s) are required to enable this support.

Design and examples can be found here:

http://wiki.eclipse.org/EclipseLink/DesignDocs/317962/Phase3#Relationship_Mapping_Support
Comment 1 David McCann CLA 2010-09-15 11:20:45 EDT
Created attachment 178947 [details]
Proposed XSD change

A global element/complextype for xml-join-nodes was added, and xml-attribute and xml-element have refs to the global element.
Comment 2 David McCann CLA 2010-09-15 11:21:20 EDT
Created attachment 178948 [details]
Proposed fix for XML metadata
Comment 3 David McCann CLA 2010-09-15 11:21:41 EDT
Created attachment 178949 [details]
Proposed fix for annotations
Comment 4 David McCann CLA 2010-09-15 11:22:15 EDT
Created attachment 178950 [details]
Supporting tests - XML metadata
Comment 5 David McCann CLA 2010-09-15 11:22:35 EDT
Created attachment 178951 [details]
Supporting tests - annotations
Comment 6 David McCann CLA 2010-09-15 12:37:39 EDT
Created attachment 178962 [details]
Proposed XSD change
Comment 7 David McCann CLA 2010-09-15 12:38:01 EDT
Created attachment 178963 [details]
Proposed fix for XML metadata
Comment 8 David McCann CLA 2010-09-15 12:38:19 EDT
Created attachment 178964 [details]
Supporting tests - XML metadata
Comment 9 David McCann CLA 2010-09-15 15:37:18 EDT
Reviewed by: blaise.doughan@oracle.com
Tests: jaxb/annotations/xmljoinnode/XmlJoinNodeTestCases; jaxb/externalizedmetadata/xmljoinnode/XmlJoinNodeTestCases; all unit tests pass as expected
Comment 10 Eclipse Webmaster CLA 2022-06-09 10:27:00 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink