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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0, 1.0.1, 1.1.0
    • 1.0.1, 1.1.0
    • jdbc
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: