You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cayenne.apache.org by "Andrus Adamchik (JIRA)" <de...@cayenne.apache.org> on 2007/11/14 20:53:44 UTC
[JIRA] Created: (CAY-920) ClassCastException when processing delete
rules for Map relationships
ClassCastException when processing delete rules for Map relationships
---------------------------------------------------------------------
Key: CAY-920
URL: https://issues.apache.org/cayenne/browse/CAY-920
Project: Cayenne
Issue Type: Bug
Components: Cayenne Core Library
Affects Versions: 3.0
Reporter: Andrus Adamchik
Assignee: Andrus Adamchik
Fix For: 3.0
This only affects 3.0M2. When processing delete rules of an object that has to-many relationship that is a Map, the following exception occurs:
java.lang.ClassCastException: org.apache.cayenne.util.PersistentObjectMap
at org.apache.cayenne.access.DataContextDeleteAction.processDeleteRules(DataContextDeleteAction.java:148)
at org.apache.cayenne.access.DataContextDeleteAction.deletePersistent(DataContextDeleteAction.java:108)
at org.apache.cayenne.access.DataContextDeleteAction.performDelete(DataContextDeleteAction.java:93)
at org.apache.cayenne.access.DataContext.deleteObject(DataContext.java:982)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[JIRA] Closed: (CAY-920) ClassCastException when processing delete
rules for Map relationships
Posted by "Andrus Adamchik (JIRA)" <de...@cayenne.apache.org>.
[ https://issues.apache.org/cayenne/browse/CAY-920?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrus Adamchik closed CAY-920.
-------------------------------
Resolution: Fixed
> ClassCastException when processing delete rules for Map relationships
> ---------------------------------------------------------------------
>
> Key: CAY-920
> URL: https://issues.apache.org/cayenne/browse/CAY-920
> Project: Cayenne
> Issue Type: Bug
> Components: Cayenne Core Library
> Affects Versions: 3.0
> Reporter: Andrus Adamchik
> Assignee: Andrus Adamchik
> Fix For: 3.0
>
>
> This only affects 3.0M2. When processing delete rules of an object that has to-many relationship that is a Map, the following exception occurs:
> java.lang.ClassCastException: org.apache.cayenne.util.PersistentObjectMap
> at org.apache.cayenne.access.DataContextDeleteAction.processDeleteRules(DataContextDeleteAction.java:148)
> at org.apache.cayenne.access.DataContextDeleteAction.deletePersistent(DataContextDeleteAction.java:108)
> at org.apache.cayenne.access.DataContextDeleteAction.performDelete(DataContextDeleteAction.java:93)
> at org.apache.cayenne.access.DataContext.deleteObject(DataContext.java:982)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.