openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Georgi Naplatanov (JIRA)" <j...@apache.org>
Subject [jira] Created: (OPENJPA-546) Generates SQL update for unchanged entities within transaction
Date Thu, 27 Mar 2008 06:47:24 GMT
Generates SQL update for unchanged entities within transaction
--------------------------------------------------------------

                 Key: OPENJPA-546
                 URL: https://issues.apache.org/jira/browse/OPENJPA-546
             Project: OpenJPA
          Issue Type: Improvement
    Affects Versions: 1.0.2
         Environment: OpenJPA 1.0.2
PostgreSQL 8.3.0 and probably for other RDBMS
            Reporter: Georgi Naplatanov


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() ;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message