Awesome. I had a tough time coming up with a reproducible case for some reason.
Cris
On 1/8/06, Andrus Adamchik <andru..bjectstyle.org> wrote:
> Just stumbled on this issue myself (see CAY-417 - the fix is already
> in CVS).
>
> Andrus
>
>
> On Dec 8, 2005, at 1:32 PM, Cris Daniluk wrote:
>
> > I just moved to the latest CVS to work on the hsql stuff and I am all
> > of a sudden getting an exception at this block of code whenever I
> > prefetch a to-one relationship:
> >
> > if (incoming.isToMany()) {
> > ToManyList toManyList = (ToManyList) object.readProperty
> > (getName());
> >
> > // TODO, Andrus 11/15/2005 - if list is modified,
> > shouldn't we attempt to
> > // merge the changes instead of overwriting?
> > toManyList.setObjectList(related != null ? related : new
> > ArrayList(1));
> > }
> > else {
> > // this should've been handled earlier in 'linkToParent'
> > throw new CayenneRuntimeException(
> > "To-one relationship wasn't handled properly: " +
> > incoming.getName());
> > }
> >
> > It could certainly be a problem with my map that wasn't being exposed
> > until now. I haven't had time to dig into it yet, but its definitely
> > something that started happening between M7 and now. Considering the
> > prefetch work, I thought I'd point it out.
> >
> > Cris
> >
>
>
This archive was generated by hypermail 2.0.0 : Sun Jan 08 2006 - 21:35:38 EST