Community
Participate
Working Groups
Example: <entity name="Boat" class="Boat" access="PROPERTY"> ... <primary-key-join-column name="boat_id" referenced-column-name="id"/> <entity name="Person" class="Person" access="PROPERTY"> ... <attributes> <many-to-one name="boat" target-entity="Boat"> <join-column name="b_id" referenced-column-name="boat_id"/> </many-to-one> Our code to associate boat_id with Bus's parent 'id' column would fail if the uppercasing flag was set to true (which it is by default) Reason: 1- Primary key join columns are processed first and upper cased 2- By the time we process the many-to-one, when we look up the primary key association for 'boat_id' it won't be found since on the association map it will be 'BOAT_ID' and we therefore don't find the association.
Created attachment 169358 [details] Proposed changes
Changes have been submitted. Reviewed by: Chris Delahunt Tests: New test (testPKJoinColumnAssociation) added to EntityMappingsInheritanceJUnitTestCase
Created attachment 169385 [details] Amendment to original fix After review from Gordon Yorke. Takes into consideration delimeted identifiers
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink