You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Georgi Naplatanov (JIRA)" <ji...@apache.org> on 2008/03/27 07:47:24 UTC

[jira] Created: (OPENJPA-546) Generates SQL update for unchanged entities within transaction

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.


[jira] Resolved: (OPENJPA-546) Generates SQL update for unchanged entities within transaction

Posted by "Georgi Naplatanov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-546?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Georgi Naplatanov resolved OPENJPA-546.
---------------------------------------

    Resolution: Invalid

> 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.


[jira] Commented: (OPENJPA-546) Generates SQL update for unchanged entities within transaction

Posted by "Georgi Naplatanov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12589771#action_12589771 ] 

Georgi Naplatanov commented on OPENJPA-546:
-------------------------------------------

This behavior is for only un-enhanced entities.

Thanks to Rajeev Jha.

This bug report should be closed.

> 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.