cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Schaumlöffel (JIRA) <>
Subject [jira] Created: (CAY-1520) Deleting Objects with Flattened Read-Only Relationships
Date Mon, 06 Dec 2010 11:05:12 GMT
Deleting Objects with Flattened Read-Only Relationships

                 Key: CAY-1520
             Project: Cayenne
          Issue Type: Bug
    Affects Versions: 3.0.1
         Environment: multiple
            Reporter: Jan Schaumlöffel

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(
	at org.apache.cayenne.access.ObjectDiff$ArcOperation.apply(
	at org.apache.cayenne.graph.CompoundDiff.apply(
	at org.apache.cayenne.access.ObjectStoreGraphDiff.apply(
	at org.apache.cayenne.access.DataDomainIndirectDiffBuilder.processIndirectChanges(
	at org.apache.cayenne.access.DataDomainFlushAction.preprocess(
	at org.apache.cayenne.access.DataDomainFlushAction.flush(
	at org.apache.cayenne.access.DataDomain.onSyncFlush(
	at org.apache.cayenne.access.DataDomain$2.transform(
	at org.apache.cayenne.access.DataDomain.runInTransaction(
	at org.apache.cayenne.access.DataDomain.onSync(
	at org.apache.cayenne.access.DataContext.flushToParent(
	at org.apache.cayenne.access.DataContext.commitChanges(

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

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message