Hi

I've figured out a problem with the many-to-many query in OQL.
I use a category class having a many-to-many relation to itself
(categories can be one of many subcategories and can have multiple
subcategories itself).
The collections are called Parents and Kids.
A query in the form of:

SELECT c FROM CategoryClass WHERE c.Parents.Name = $1

works only for the relation being mentioned first in the mapping-file.
In my case this is Parents. So a query asking for c.Kids.Name leads
to an empty result.
If I change the position of the two relations in the mapping file
the problem is still the same (only vice versa, Kids works, Parents not). 


thanks in advance

******************************************************************
Oliver Epper

IPCON Informationssysteme oHG
Saarstr. 51-53
54290 Trier
 
fon: +49 651 97099 24
******************************************************************

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

Reply via email to