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

Deleting Objects with Flattened Read-Only Relationships

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 3.0.1
    • None
    • None
    • None
    • multiple

    Description

      When deleting an object with a flattened read-only relationship an exception is thrown:

      Caused by: org.apache.cayenne.CayenneRuntimeException: [v.3.0.1 Sep 06 2010 15:09:38] Cannot unset the read-only flattened relationship runtimeRelationship0
      at org.apache.cayenne.access.DataDomainIndirectDiffBuilder.arcDeleted(DataDomainIndirectDiffBuilder.java:123)
      at org.apache.cayenne.access.ObjectDiff$ArcOperation.apply(ObjectDiff.java:440)
      at org.apache.cayenne.graph.CompoundDiff.apply(CompoundDiff.java:91)
      at org.apache.cayenne.access.ObjectStoreGraphDiff.apply(ObjectStoreGraphDiff.java:134)
      at org.apache.cayenne.access.DataDomainIndirectDiffBuilder.processIndirectChanges(DataDomainIndirectDiffBuilder.java:59)
      at org.apache.cayenne.access.DataDomainFlushAction.preprocess(DataDomainFlushAction.java:180)
      at org.apache.cayenne.access.DataDomainFlushAction.flush(DataDomainFlushAction.java:134)
      at org.apache.cayenne.access.DataDomain.onSyncFlush(DataDomain.java:824)
      at org.apache.cayenne.access.DataDomain$2.transform(DataDomain.java:791)
      at org.apache.cayenne.access.DataDomain.runInTransaction(DataDomain.java:850)
      at org.apache.cayenne.access.DataDomain.onSync(DataDomain.java:788)
      at org.apache.cayenne.access.DataContext.flushToParent(DataContext.java:1106)
      at org.apache.cayenne.access.DataContext.commitChanges(DataContext.java:1045)
      ...

      It might be the same issue as CAY-784, but I haven't looked at the code yet.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jsch Jan Schaumlöffel
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: