cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Gentry (JIRA)" <j...@apache.org>
Subject [jira] Created: (CAY-1507) Possible bug with To Dependent PK
Date Fri, 12 Nov 2010 15:35:13 GMT
Possible bug with To Dependent PK
---------------------------------

                 Key: CAY-1507
                 URL: https://issues.apache.org/jira/browse/CAY-1507
             Project: Cayenne
          Issue Type: Bug
          Components: Core Library
    Affects Versions: 3.0.1
         Environment: All
            Reporter: Michael Gentry
         Attachments: CayenneTestToDepPK.tar.gz

When using the To Dep PK setting, a commit, followed by an update, followed by another commit
is failing with an Optimistic Locking Exception as the PK for the parent/master record is
null in the snapshot and a null PK can't be matched.  Turning optimistic locking off makes
the issue go away (but then you lose another feature).

Will attach project illustrating bug.  It should also be noted that when I put together a
scaled down example to illustrate the bug with just User and Avatar classes, the problem did
not appear.  When I added the Role class it re-appeared.  Somehow it seems having the extra
relationship on the parent/master record (User) triggered the bug.


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