I have the following scenario

class Car
{
        collection owners() //contains Owner
}

class Owner
{
    String name;
}

how can I construct an oql statement to find all the cars that contain a
particular owner. I tried the following:

 c from Car c WHERE c.owners.name='Bob'

with that string, I get a null pointer exception instead of a syntax error.
Am I on the right track or is this a known Castor limitation.

Thanks
Caster Xeniot

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

Reply via email to