openjpa-dev mailing list archives

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

     [ 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: 2.3.0
                       2.2.0
    
> 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, 2.2.0, 2.3.0
>            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

        

Mime
View raw message