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

Setting PessimisticLockManager fails to append "for update clause" to the select statement

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • None
    • None
    • Patch Available

    Description

      I ran a testcase against openjpa 1.2, and found that the "for update" clause is appended to the SQL when

      <property name="openjpa.LockManager" value="pessimistic"/>

      is added to the persistence.xml without calling:

      q.setLockMode(LockModeType.PESSIMISTIC_WRITE);

      However, this behavior changes when running against trunk level code

      Attachments

        1. OPENJPA-1604-trunk.patch
          14 kB
          Richard G. Curtis
        2. OPENJPA-1604-2.0.x.patch
          14 kB
          Richard G. Curtis
        3. OPENJPA-1604_optimistic_fix_2.0.x.patch
          8 kB
          Jeremy Bauer

        Issue Links

          Activity

            People

              curtisr7 Richard G. Curtis
              faywang Fay Wang
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: