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 (Created) (JIRA)" <ji...@apache.org> on 2012/04/20 18:18:47 UTC
[jira] [Created] (OPENJPA-2175) Wrong value persisted with multiple
foreign keys of the same type
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
[jira] [Assigned] (OPENJPA-2175) Wrong value persisted with
multiple foreign keys of the same type
Posted by "Dianne Richards (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-2175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dianne Richards reassigned OPENJPA-2175:
----------------------------------------
Assignee: 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
[jira] [Updated] (OPENJPA-2175) Wrong value persisted with multiple
foreign keys of the same type
Posted by "Dianne Richards (Updated) (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Work started] (OPENJPA-2175) Wrong value persisted with
multiple foreign keys of the same type
Posted by "Dianne Richards (Work started) (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Updated] (OPENJPA-2175) Wrong value persisted with multiple
foreign keys of the same type
Posted by "Dianne Richards (Updated) (JIRA)" <ji...@apache.org>.
[ 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