You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Dianne Richards (Updated) (JIRA)" <ji...@apache.org> on 2012/04/20 18:50:39 UTC
[jira] [Updated] (OPENJPA-2175) Wrong value persisted with multiple
foreign keys of the same type
[ https://issues.apache.org/jira/browse/OPENJPA-2175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dianne Richards updated OPENJPA-2175:
-------------------------------------
Affects Version/s: (was: 2.3.0)
(was: 2.0.1)
2.0.3
Fix Version/s: (was: 2.3.0)
(was: 2.0.1)
> 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.3
> Reporter: Dianne Richards
> Assignee: Dianne Richards
>
> 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