openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dianne Richards (Work started) (JIRA)" <j...@apache.org>
Subject [jira] [Work started] (OPENJPA-2175) Wrong value persisted with multiple foreign keys of the same type
Date Fri, 20 Apr 2012 16:20:40 GMT

     [ https://issues.apache.org/jira/browse/OPENJPA-2175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Work on OPENJPA-2175 started by Dianne Richards.

> 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
>            Assignee: Dianne Richards
>             Fix For: 2.0.1, 2.3.0
>
>
> 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

        

Mime
View raw message