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

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