You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrey Razumovsky (JIRA)" <ji...@apache.org> on 2010/03/21 15:44:27 UTC

[jira] Closed: (CAY-1404) ClassCastException during ObjectDetachOperation

     [ https://issues.apache.org/jira/browse/CAY-1404?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrey Razumovsky closed CAY-1404.
----------------------------------

    Resolution: Fixed

> ClassCastException during ObjectDetachOperation
> -----------------------------------------------
>
>                 Key: CAY-1404
>                 URL: https://issues.apache.org/jira/browse/CAY-1404
>             Project: Cayenne
>          Issue Type: Bug
>          Components: ROP
>    Affects Versions: 3.0RC2
>            Reporter: Neil Rutherford
>            Assignee: Andrey Razumovsky
>            Priority: Minor
>             Fix For: 3.0RC3
>
>
>  
> I have modeled a too-many relationship as a map, when executing a query with a prefetch for this relationship (in my ROP client) I get the following:
> java.lang.ClassCastException: org.apache.cayenne.util.PersistentObjectMap cannot be cast to java.util.Collection
> 	at org.apache.cayenne.util.ObjectDetachOperation$1.visitToMany(ObjectDetachOperation.java:131)
> 	at org.apache.cayenne.reflect.generic.DataObjectToManyProperty.visit(DataObjectToManyProperty.java:111)
> 	at org.apache.cayenne.reflect.PersistentDescriptor.visitSuperProperties(PersistentDescriptor.java:360)
> 	at org.apache.cayenne.reflect.PersistentDescriptor.visitProperties(PersistentDescriptor.java:402)
> 	at org.apache.cayenne.reflect.LazyClassDescriptorDecorator.visitProperties(LazyClassDescriptorDecorator.java:179)
> 	at org.apache.cayenne.util.ObjectDetachOperation.detach(ObjectDetachOperation.java:98)

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