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

Generates SQL update for unchanged entities within transaction

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 1.0.2
    • None
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: