This content has been marked as final.
Show 1 reply
-
1. Re: EJB QL/JBoss QL possible across a collection?
hariv Jan 22, 2005 11:03 AM (in response to dcracauer)query="SELECT OBJECT(h) FROM Parent AS h , Child AS d WHERE d.commodityCode=?1 AND d MEMBER OF h.details"
This query check for a commodity code in the child and checks whether the matching child belongs to a parent.
In your case
query="SELECT OBJECT(h) FROM GrandParent AS GP , Children AS CH, GrandChildren AS GC, Gender GT WHERE GT.id=1 AND GT MEMBER OF GC AND GC MEMBER OF CH AND CH MEMBER OF GP
Please try this