[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.technology.jsr220-orm] Re: Inheritance and JDOQL

Hi Michael,

I recommend you visit the Open Access forum with this question.

http://forums.versant.com/forums/main/index

Regards,
-Robert

Robert Greene
JSR220-ORM team lead
rgreene@xxxxxxxxxxx

"michael" <michael.simons@xxxxxxxxxxx> wrote in message
news:op.s1vvu9mb27ug8i@xxxxxxxxxxxxxxxxxxx
> Hi,
>
> can I do the following in any way with OpenAccess?
>
>
> Classes A, B, C, D
> A has a set of B's (called children). C and D are descendants of B.
>
> I want to query instances of A, that have associated a C, that fulfils
> some other restriction, like this
> query = pm.newQuery (A.class);
> query.setFilter ("children contains (child) && child intanceof C &&
> ((C)child).someAttribute == someValue");
> query.declareVariable ("B child");
>
> Any suggestions are welcome.
>
> Regards,
> Michael
>