You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Vikram Bhatia (JIRA)" <ji...@apache.org> on 2008/04/10 12:18:06 UTC
[jira] Updated: (OPENJPA-567) @OrderColumn generates duplicate
order numbers.
[ https://issues.apache.org/jira/browse/OPENJPA-567?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vikram Bhatia updated OPENJPA-567:
----------------------------------
Attachment: proposed-soln.patch
Proposed Solution.
> @OrderColumn generates duplicate order numbers.
> -----------------------------------------------
>
> Key: OPENJPA-567
> URL: https://issues.apache.org/jira/browse/OPENJPA-567
> Project: OpenJPA
> Issue Type: Bug
> Components: jdbc
> Affects Versions: 1.0.2
> Reporter: Vikram Bhatia
> Priority: Minor
> Attachments: OrderColumnTest.zip, proposed-soln.patch
>
>
> @OrderColumn generates and inserts duplicate entries. This is not always the issue, but only for first number, and it starts at 1 instead of 0. The problem is in class StoreCollectionFieldStrategy.load() method where variable seq either needs to be initialized with -1.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.