Cayenne can fail (optimistic locking exception) when deleting a record that was 
just inserted/commited to the DB
----------------------------------------------------------------------------------------------------------------

         Key: CAY-595
         URL: http://issues.apache.org/cayenne/browse/CAY-595
     Project: Cayenne
        Type: Bug

  Components: Cayenne Core Library  
    Versions: 1.2    
 Environment: OS X
    Reporter: Michael Gentry
     Fix For: 1.2


Please see attached test case (java/model/etc).  Versions.rtf shows log output 
with notes.  Entities.png shows main classes.

In a nutshell, prior to Cayenne 1.2 M12 (including in 1.1), an insert followed 
by a delete would succeed.  Starting with M12, the code throws an optimistic 
locking exception.  It almost appears as if the snapshot is being messed up, 
because the bind parameters are incorrect and the values shown do not match the 
original DB values it just inserted.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/cayenne/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to