OpenJPA
  1. OpenJPA
  2. OPENJPA-1604

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: None
    • Labels:
      None
    • Patch Info:
      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

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

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Rick Curtis
              Reporter:
              Fay Wang
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development