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] Commented: (OPENJPA-546) Generates SQL update for unchanged entities within transaction
Date Wed, 16 Apr 2008 23:31:21 GMT

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


Mime
View raw message