Community
Participate
Working Groups
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.
Changing priority to P@ since JPA 2.0 features are required for the 2.0 release
Created attachment 133126 [details] Proposed changes
Created attachment 133370 [details] Updated changes to EmbeddedAccessor
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
Mass update to change fixed in target.
Re-opening this bug to address the changes to mapped-by-id to maps-id.
Created attachment 148981 [details] Proposed changes
Created attachment 149003 [details] Updated patch after review
Changes were submitted. Reviewed: Chris Delahunt. Same existing tests still apply and were modified to use mapsId instead of mappedById.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink