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

em.getTransaction().commit() is not issuing database commit for NativeQuery requesting updates

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0, 1.0.1, 1.1.0
    • Fix Version/s: 1.0.1, 1.1.0
    • Component/s: jdbc
    • Labels:
      None

      Description

      If update is requested by a native query and it is the only method run in the application,
      following query.executeUpdate(),
      em.getTransaction().commit(0 is not issuing database commit.
      If after that, em.close() was not issued, any subsequent query againt the same table which involved in the previous
      native query update will get blocked.

        Attachments

          Activity

            People

            • Assignee:
              fancy Catalina Wei
              Reporter:
              fancy Catalina Wei
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: