Joined: Mon Nov 17, 2003 7:53 pm Posts: 15
|
I have a class called A and it contains a set of class B. Class B in turn has a set of class C, and it in turn has a set of class D. The relationship between these class is one-to-many (<set> <one-to-many></one-to-many></set>)
Now my question is can a perform a query like this using HQL.
select A.B.C.D
from A.B.C
where A.B.C.type='explorer' and A.B.type = 'ford' and A.type='car'
I am trying to avoid doing joins. Can something like this be done or are there alternatives?
|
|