[JIRA] Created: (CAY-595) Cayenne can fail (optimistic locking exception) when deleting a record that was just inserted/commited to the DB

From: Michael Gentry (JIRA) ("Michael)
Date: Tue Jul 11 2006 - 11:18:48 EDT

  • Next message: Gentry, Michael \(Contractor\): "RE: Final release?"

    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
    



    This archive was generated by hypermail 2.0.0 : Tue Jul 11 2006 - 11:20:47 EDT