Hi all,
My basic model is as follows:
class A {
int id; //PK
... //a few more attributes
List b; //collection of class B objects, of which there can be 0:n
}
I'm having trouble creating the proper criteria to only return the instances
of A where
there are 1 or more instances of B associated (i.e. b.size > 0). The same
goes
for the negative form. I've tried OQL, PB with subqueries, and PB with
exists/not exists
criteria. About the only way I can get what I want is through QueryBySQL.
Is there
something that I'm overlooking here?
Thanks,
Ken Robinson
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>