This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 270011 - JPA 2.0 MappedById support
Summary: JPA 2.0 MappedById support
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Guy Pelletier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-25 14:24 EDT by Chris Delahunt CLA
Modified: 2022-06-09 10:09 EDT (History)
3 users (show)

See Also:


Attachments
Proposed changes (197.17 KB, patch)
2009-04-24 10:22 EDT, Guy Pelletier CLA
no flags Details | Diff
Updated changes to EmbeddedAccessor (4.13 KB, patch)
2009-04-27 11:13 EDT, Guy Pelletier CLA
no flags Details | Diff
Proposed changes (83.50 KB, patch)
2009-10-07 08:17 EDT, Guy Pelletier CLA
no flags Details | Diff
Updated patch after review (96.36 KB, patch)
2009-10-07 11:26 EDT, Guy Pelletier CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Delahunt CLA 2009-03-25 14:24:02 EDT
JPA 2.0 adds a @MappedById annotation and xml tag that allows users to specify that a OneToOne mapping is 'mappedby' a basic mapping which is marked as the entities primary key.  

This was left out of derived ID support done for bug 241765.
Comment 1 Doug Clarke CLA 2009-04-08 15:10:39 EDT
Changing priority to P@ since JPA 2.0 features are required for the 2.0 release
Comment 2 Guy Pelletier CLA 2009-04-24 10:22:59 EDT
Created attachment 133126 [details]
Proposed changes
Comment 3 Guy Pelletier CLA 2009-04-27 11:13:16 EDT
Created attachment 133370 [details]
Updated changes to EmbeddedAccessor
Comment 4 Guy Pelletier CLA 2009-04-27 12:33:28 EDT
Patches have been submitted

Reviewed by: Tom Ware

New tests added to:
org.eclipse.persistence.testing.tests.jpa.advanced.compositepk.AdvancedCompositePKJunitTest
- testMappedByIdExample1
- testMappedByIdExample2
- testMappedByIdExample3
- testMappedByIdExample4
- testMappedByIdExample5
- testMappedByIdExample6

Documentation:
http://wiki.eclipse.org/EclipseLink/Development/JPA_2.0/mappedbyid
Comment 5 Peter Krogh CLA 2009-08-26 09:50:01 EDT
Mass update to change fixed in target.
Comment 6 Peter Krogh CLA 2009-08-26 09:53:00 EDT
Mass update to change fixed in target.
Comment 7 Peter Krogh CLA 2009-08-26 09:58:45 EDT
Mass update to change fixed in target.
Comment 8 Peter Krogh CLA 2009-08-26 10:01:17 EDT
Mass update to change fixed in target.
Comment 9 Guy Pelletier CLA 2009-10-07 08:14:52 EDT
Re-opening this bug to address the changes to mapped-by-id to maps-id.
Comment 10 Guy Pelletier CLA 2009-10-07 08:17:24 EDT
Created attachment 148981 [details]
Proposed changes
Comment 11 Guy Pelletier CLA 2009-10-07 11:26:57 EDT
Created attachment 149003 [details]
Updated patch after review
Comment 12 Guy Pelletier CLA 2009-10-14 10:01:46 EDT
Changes were submitted.

Reviewed: Chris Delahunt.

Same existing tests still apply and were modified to use mapsId instead of mappedById.
Comment 13 Eclipse Webmaster CLA 2022-06-09 10:09:26 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink