Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-1507

Possible bug with To Dependent PK

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.1
    • None
    • Core Library
    • None
    • All

    Description

      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.

      Attachments

        1. CayenneTestToDepPK.tar.gz
          4 kB
          Michael Gentry

        Activity

          People

            Unassigned Unassigned
            blacknext Michael Gentry
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: