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

Bug 258491

Summary: [JPA 2.0] support additional mapping types in Embeddables - association overrides on embedded mappings
Product: [WebTools] Dali JPA Tools Reporter: Karen Butzke <karenfbutzke>
Component: GeneralAssignee: Karen Butzke <karenfbutzke>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: neil.hauge
Version: 2.1Keywords: plan
Target Milestone: 2.3 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard: JPA2.0

Description Karen Butzke CLA 2008-12-11 12:06:44 EST
In JPA 1.0 only Basic and Transient mappings were support inside of Embeddables.  

In JPA 2.0 the supported mapping types are:
basic
many-to-one
one-to-many
one-to-one
many-to-many
element-collection
embedded
transient

We need to relax the validation error that we give when an attribute mapping type is not supported in a particular type.
Comment 1 Karen Butzke CLA 2008-12-11 12:17:32 EST
There is more to this than just changing a validation error.  One big change is Embeddables supporting references to other Entities, this means supporting association-overrides on embedded mappings.

I will enter another bug for nested Embeddables.
Comment 2 Karen Butzke CLA 2008-12-11 13:42:46 EST
association-overrides now need to support the join-table element
Comment 3 Karen Butzke CLA 2009-06-24 14:39:19 EDT
comment # 2 is now bug 281389.

I have  relaxed the validation error to support the new mapping types.  I will include supporting association-overrides on Embedded mappings in this bug and leave it open.
Comment 4 Karen Butzke CLA 2009-09-21 13:15:22 EDT
This is completed in the Generic 2.0 model (java and orm) for M2.  Association overrides are supported on embedded mappings and association overrides also support join-tables.  The additional mapping types are now allowed, no validation error for these cases. 

In M3 we will add the support to the EclipseLink 2.0 model.
Comment 5 Karen Butzke CLA 2009-09-25 14:27:53 EDT
The eclipselink 2.0 support has been added for M3