Community
Participate
Working Groups
Created attachment 168775 [details] example jpa project In the attached example project you will see 2 validation errors on the Captain entity. EclipseLink handles this particular use case. - Embedded IDs that are mapped by a relationship should not specify any attribute overrides. - The type of the ID mapped by the relationship 'major' does not agree with the primary key class of the target entity.
Investigate for 2.3.1.
The workaround for this is to add a value to the maps id annotation. @MapsId("major")
The workaround is potentially technically incorrect, as EclipseLink (as a reference implementation) represents the default value of the @MapsId as "id", although what happens under the covers seems equivalent. At any rate, solving this problem in maintenance seems problematic. It's likely we'll need a more sophisticated API to address this issue, so I'm re-targeting to next release.
Moving JPA specific bugs to new JPA component in bugzilla.
Targeting to Juno release.
Committed for M1