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:12:04 UTC

[jira] Created: (OPENJPA-567) @OrderColumn generates duplicate order numbers.

@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


@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.


[jira] Updated: (OPENJPA-567) @OrderColumn generates duplicate order numbers.

Posted by "Albert Lee (JIRA)" <ji...@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.


[jira] Updated: (OPENJPA-567) @OrderColumn generates duplicate order numbers.

Posted by "Vikram Bhatia (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-567?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vikram Bhatia updated OPENJPA-567:
----------------------------------

    Description: @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.  (was: @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.)

> @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 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.


[jira] Commented: (OPENJPA-567) @OrderColumn generates duplicate order numbers.

Posted by "Patrick Linskey (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12591460#action_12591460 ] 

Patrick Linskey commented on OPENJPA-567:
-----------------------------------------

Patch looks good. I'm running a remote test against it now; it should submit to the 1.1.x branch shortly.

I had been curious about backward-compatibility with existing data sets; Srinivas points out that this isn't an issue since the result set will never be empty in the case that there is data, and so the existing data will be read.

> @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 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.


[jira] Resolved: (OPENJPA-567) @OrderColumn generates duplicate order numbers.

Posted by "Patrick Linskey (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-567?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Patrick Linskey resolved OPENJPA-567.
-------------------------------------

    Resolution: Fixed

> @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.


[jira] Updated: (OPENJPA-567) @OrderColumn generates duplicate order numbers.

Posted by "Vikram Bhatia (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-567?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vikram Bhatia updated OPENJPA-567:
----------------------------------

    Attachment: OrderColumnTest.zip

Please see README.txt in zip file.

> @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.


[jira] Commented: (OPENJPA-567) @OrderColumn generates duplicate order numbers.

Posted by "Vikram Bhatia (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12592970#action_12592970 ] 

Vikram Bhatia commented on OPENJPA-567:
---------------------------------------

Can the test case be added to regression test suite?

> @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.


[jira] Updated: (OPENJPA-567) @OrderColumn generates duplicate order numbers.

Posted by "Vikram Bhatia (JIRA)" <ji...@apache.org>.
     [ 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.