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

          Fay Wang created issue -
          Donald Woods made changes -
          Field Original Value New Value
          Assignee Pinaki Poddar [ ppoddar@apache.org ]
          Fix Version/s 2.0.0 [ 12314019 ]
          Fix Version/s 2.1.0 [ 12314542 ]
          Affects Version/s 2.0.0 [ 12314019 ]
          Patch Info [Patch Available]
          Rick Curtis made changes -
          Attachment OPENJPA-1604-2.0.x.patch [ 12441191 ]
          Attachment OPENJPA-1604-trunk.patch [ 12441192 ]
          Rick Curtis made changes -
          Attachment OPENJPA-1604-2.0.x.patch [ 12441191 ]
          Rick Curtis made changes -
          Attachment OPENJPA-1604-trunk.patch [ 12441192 ]
          Rick Curtis made changes -
          Attachment OPENJPA-1604-trunk.patch [ 12441198 ]
          Attachment OPENJPA-1604-2.0.x.patch [ 12441199 ]
          Rick Curtis made changes -
          Assignee Pinaki Poddar [ ppoddar@apache.org ] Rick Curtis [ curtisr7 ]
          Donald Woods made changes -
          Fix Version/s 2.1.0 [ 12314542 ]
          Affects Version/s 2.1.0 [ 12314542 ]
          Donald Woods made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Rick Curtis made changes -
          Link This issue is related to OPENJPA-1629 [ OPENJPA-1629 ]
          Donald Woods made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Jeremy Bauer made changes -
          Attachment OPENJPA-1604_optimistic_fix_2.0.x.patch [ 12442891 ]
          Michael Dick made changes -
          Link This issue incorporates OPENJPA-1714 [ OPENJPA-1714 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development