This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 258491 - [JPA 2.0] support additional mapping types in Embeddables - association overrides on embedded mappings
Summary: [JPA 2.0] support additional mapping types in Embeddables - association overr...
Status: RESOLVED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: General (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 2.3 M3   Edit
Assignee: Karen Butzke CLA
QA Contact:
URL:
Whiteboard: JPA2.0
Keywords: plan
Depends on:
Blocks:
 
Reported: 2008-12-11 12:06 EST by Karen Butzke CLA
Modified: 2010-01-21 12:57 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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