Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-567

@OrderColumn generates duplicate order numbers.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.2
    • Fix Version/s: 1.1.0, 1.2.0
    • Component/s: jdbc
    • Labels:
      None

      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.

        Attachments

        1. proposed-soln.patch
          0.7 kB
          Vikram Bhatia
        2. OrderColumnTest.zip
          12 kB
          Vikram Bhatia

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vbhatia Vikram Bhatia
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: