Haven't lok in the code, but I think this is the same issue as CAY-15. I
guess until CAY-15 is fixed prefetching on flattened relationships should
be avoided.
Andrus
> All,
>
> I am getting the following exception when pulling from a stored query
> that includes a prefetch on a flattened many-to-many relationship:
>
> java.lang.ClassCastException
>
> org.objectstyle.cayenne.access.util.SelectObserver.partitionBySource(SelectO
> bserver.java:253)
>
> org.objectstyle.cayenne.access.util.SelectObserver$PrefetchTreeNode.resolveO
> bjectTree(SelectObserver.java:432)
>
> org.objectstyle.cayenne.access.util.SelectObserver$PrefetchTreeNode.resolveO
> bjectTree(SelectObserver.java:398)
>
> org.objectstyle.cayenne.access.util.SelectObserver.getResultsAsObjects(Selec
> tObserver.java:201)
>
> org.objectstyle.cayenne.access.DataContext.performQuery(DataContext.java:162
> 4)
>
> org.objectstyle.cayenne.access.DataContext.performQuery(DataContext.java:155
> 6)
>
> org.objectstyle.cayenne.access.DataContext.performQuery(DataContext.java:150
> 1)
>
> It seems to be a reoccurence of the bug described in CAY-15 and at
> http://www.objectstyle.org/cayenne/lists/cayenne-devel/2004/03/0049.html.
>
> I got the impression from the release notes in 1.1RC2 that these
> problems were resolved. Is this a separate bug, or is this problem not
> likely to be fixed for 1.1 final?
>
> Thanks,
>
> Cris
This archive was generated by hypermail 2.0.0 : Fri Nov 12 2004 - 09:20:58 EST