You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Ashish Rangole <as...@vexcel.com> on 2004/11/19 18:42:56 UTC

Problem retrieving proxied collections

Hi!

I have m:n mappings and have collection proxies for the
collection of referenced objects. I am using v1.0.1 and
PB API within ODMG to query.

When I query a object having a collection with a certain
field of main object as criteria, then I get the collections
as well. However, when I use more than a plain criteria which
mentions more than one fields of main object (I do that by compounding
criteria together), I get the main object with empty collection.

Is this expected or what I am doing wrong? How do I get the collections
as well.

Any response shall be highly appreciated.

Thanks for your help.
Ashish


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: Problem retrieving proxied collections

Posted by Armin Waibel <ar...@apache.org>.
Hi Ashish,

Ashish Rangole wrote:

> Hi!
> 
> I have m:n mappings and have collection proxies for the
> collection of referenced objects. I am using v1.0.1 and
> PB API within ODMG to query.
> 
> When I query a object having a collection with a certain
> field of main object as criteria, then I get the collections
> as well. However, when I use more than a plain criteria which
> mentions more than one fields of main object (I do that by compounding
> criteria together), I get the main object with empty collection.
>

This sounds like a bug. We currently try to improve OJB for upcoming 
1.0.2 version. Could you post the source code, so that we can reproduce 
(and hopefully fix) the problem with an test case.

regards,
Armin


> Is this expected or what I am doing wrong? How do I get the collections
> as well.
> 
> Any response shall be highly appreciated.
> 
> Thanks for your help.
> Ashish
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org