Wrong value persisted with multiple foreign keys of the same type
-----------------------------------------------------------------
Key: OPENJPA-2175
URL: https://issues.apache.org/jira/browse/OPENJPA-2175
Project: OpenJPA
Issue Type: Bug
Affects Versions: 2.0.1, 2.3.0
Reporter: Dianne Richards
Fix For: 2.3.0, 2.0.1
When an entity contains 2 or more relationships (ex: @ManyToOne), each with a
type of the same entity, and a foreign key table is generated with each of them
as an id, 1 or more of the id values are wrong.
The problem occurs in ValueMappingImpl where the getForeignKey() method always
grabs the first one that matches the type.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira