cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Razumovsky (JIRA)" <j...@apache.org>
Subject [jira] Closed: (CAY-1404) ClassCastException during ObjectDetachOperation
Date Sun, 21 Mar 2010 14:44:27 GMT

     [ 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.


Mime
View raw message