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

@OrderColumn generates duplicate order numbers.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0.2
    • 1.1.0, 1.2.0
    • jdbc
    • 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. OrderColumnTest.zip
          12 kB
          Vikram Bhatia
        2. proposed-soln.patch
          0.7 kB
          Vikram Bhatia

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: