views:

23

answers:

1

If I have this three structure in a table,

-A
 |
 *---B
 |   |
 |   *---C
 |   |
 |   *---D
 |       |
 |       *---E
 |       |
 |       *---F
 |       |
 |       *---G
 *---H
     *---I
     |
     *---J

assuming list() method is called and it returns a colleccion of B and H. In this scenario I would like hibernate obtain C,D,I and J in a single query.(lazy=false is not working because I dont need E,F and G, just the FIRST LEVEL) thanks a lot

A: 

I don't think there is any way to achieve this. Let others know if you find something

Paras