openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Schmitz (JIRA)" <j...@apache.org>
Subject [jira] Created: (OPENJPA-1929) ValueHandlers try to immediately write even though one is only reading
Date Tue, 25 Jan 2011 10:24:44 GMT
ValueHandlers try to immediately write even though one is only reading
----------------------------------------------------------------------

                 Key: OPENJPA-1929
                 URL: https://issues.apache.org/jira/browse/OPENJPA-1929
             Project: OpenJPA
          Issue Type: Bug
          Components: jdbc
    Affects Versions: 2.0.1
         Environment: any
            Reporter: David Schmitz


We have implemented an own ValueHandler by inheriting from AbstractValueHandler. 

If one reads from a query inside a transaction from a database, OpenJPA calls the handler
(toDataStoreValue) of the unmodified query objects trying to write back to the database on
commit, even though nothing has been manipulated.

The writting can only be avoided when leaving out the transaction block. 

This is no correct JPA behaviour as it should be possible to do read-only data processing
within a JPA transaction.




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