Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 15606 invoked from network); 24 Apr 2008 14:10:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Apr 2008 14:10:51 -0000 Received: (qmail 73329 invoked by uid 500); 24 Apr 2008 14:10:51 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 73309 invoked by uid 500); 24 Apr 2008 14:10:51 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 73283 invoked by uid 99); 24 Apr 2008 14:10:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Apr 2008 07:10:51 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Apr 2008 14:10:15 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BFBA4234C102 for ; Thu, 24 Apr 2008 07:07:21 -0700 (PDT) Message-ID: <945459472.1209046041784.JavaMail.jira@brutus> Date: Thu, 24 Apr 2008 07:07:21 -0700 (PDT) From: "Albert Lee (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Updated: (OPENJPA-567) @OrderColumn generates duplicate order numbers. In-Reply-To: <1933999437.1207822324977.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-567?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Albert Lee updated OPENJPA-567: ------------------------------- Fix Version/s: 1.2.0 1.1.0 > @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 > Fix For: 1.1.0, 1.2.0 > > 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 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.