I have the following query problem:
Class Base has a Set that holds references to objects of type D. This relationship is modeled as one-to-many.
Further on class Base has a Set with objects C (one-to-many) and C has two Sets that hold also references to objects of type D. The two D-Sets of C are modeled as many-to-many.
Therefore the associations between the objects is of this kind:
Code:
|->D
Base->C
| |->D
|->D
Now I want to create a HQL-Query that queries the D. Is it possible when starting from Base-object to query the D from Base->D and also the D from C->D in one HQL-Query?
Many thanks,
Mika