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

Generates SQL update for unchanged entities within transaction

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 1.0.2
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      OpenJPA 1.0.2
      PostgreSQL 8.3.0 and probably for other RDBMS

      Description

      OpenJPA generates and executes SQL update for unchanged entities within transaction.

      Example:

      factory = Persistence.createEntityManagerFactory("....",System.getProperties()) ;
      em = factory.createEntityManager() ;
      em.getTransaction().begin() ;
      Query q = em.createQuery("SELECT ......... ");
      List l = q.getResultList() ;
      System.out.println(l.size()) ;
      em.getTransaction().commit() ;
      em.close() ;
      factory.close() ;

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              goshoo Georgi Naplatanov
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: