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

Bug 316915

Summary: CMPPolicy.createPrimaryKeyInstanceFromPrimaryKeyValues does not support PK class
Product: z_Archived Reporter: Gordon Yorke <gordon.yorke>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: eclipselink.orm-inbox
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed Patch
none
Intermediate patch none

Description Gordon Yorke CLA 2010-06-15 10:39:40 EDT
This code has a problem where the ElementIndex is not incremented correctly so compound PK classes are not processed correctly.
Comment 1 Gordon Yorke CLA 2010-06-15 10:49:01 EDT
Created attachment 171937 [details]
Proposed Patch

Simple patch to ensure the index is incremented.
Comment 2 Gordon Yorke CLA 2010-06-17 15:44:06 EDT
This patch requires an update to support EmbeddedIds and nested EmbeddedIds.
Comment 3 Gordon Yorke CLA 2010-06-17 16:07:36 EDT
Created attachment 172155 [details]
Intermediate patch

This upload includes some changes that are required for EmbeddedId support but this patch should not yet be considered complete as it does not include support for nested EmbeddedIds.
Comment 4 Gordon Yorke CLA 2010-06-29 16:27:41 EDT
Patch back ported to 2.1.1
Comment 5 Gordon Yorke CLA 2010-07-22 15:30:20 EDT
Nested Embeddables are not allowed by the JPA specification.  The patch is complete.  Nested EmbeddedIds can be added at a later date.
Comment 6 Eclipse Webmaster CLA 2022-06-09 10:19:55 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink