That's a pitty,
I saw this documentation on Hibernate:
Quote:
http://www.hibernate.org/hib_docs/refer ... ryhql.htmlfetch join does not usually need to assign an alias, because the associated objects should not be used in the where clause (or any other clause). Also, the associated objects are not returned directly in the query results. Instead, they may be accessed via the parent object. The only reason we might need an alias is if we are recursively join fetching a further collection:
from Cat as cat
inner join fetch cat.mate
left join fetch cat.kittens child
left join fetch child.kittens
Is there any other way I could limit the number of selects ?
My situation is
L1
---L2
-------L3
The number of L1 are limited (1-2-3), but the number of L2's can be about 2000, the number of L3's (linked to L2) are about 10.
By using fetching to 1 level, I can reduce the number of selects already a lot. But being able to get L1-> L3 in one select statement would reduce this to 1 select.
Would it be interesting in this case to do the joining and then splitting the tuples myself ?
Thanks