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

Bug 325366

Summary: JAXB: Need support for relationship mappings with composite keys
Product: z_Archived Reporter: David McCann <david.mccann>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 317962    
Attachments:
Description Flags
Proposed XSD change
none
Proposed fix for XML metadata
none
Proposed fix for annotations
none
Supporting tests - XML metadata
none
Supporting tests - annotations
none
Proposed XSD change
none
Proposed fix for XML metadata
none
Supporting tests - XML metadata none

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