What about the dependent objects itself?
 In my case the collections in the main object get loaded with (i think) all
the dependent object of the previous (in the query) objects... and it's
cumulative, like the first object gets its own dependent objects, the second
gets the first one's plus its own and so on...
Has ?nybody had a similar problem?

Thanks,
Boyan
==============================
Boyan Konstantinov
Software engineer
Sofia IT Lab
[EMAIL PROTECTED]
==============================


----- Original Message -----
From: "Francesco Marsoni" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 20, 2002 3:12 PM
Subject: [castor-dev] Maybe a bug in last cvs version?


> The query
>
> select p from myapp.myobject
>
> sometimes returns more than 1 values of each object if it as more than 1
> dependent object.
>
> I tried to call the sql query generated by castor and I found this result
(I
> report only primary keys wich in my case are integers).
>
> ID
> 1
> 1
> 1
> 2
> 2
> 3
> 4
> 4
> 4
> 3
> 3
> 2
>
>
> I found that the resulting enumeration of object has obects with id = 3
and
> 2 duplicated.
>
> So I tried the query
>
> select p from myapp.myobject order by p.id
>
> and it works fine.
>
> Francesco Marsoni
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev
>

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to