http://docs.jboss.org/hibernate/orm/4.2/manual/en-US/html_single/#queryhql-joins
Fetch should not be used together with setMaxResults() or setFirstResult(), as these operations are based on the result rows which usually contain duplicates for eager collection fetching, hence, the number of rows is not what you would expect.
Facundo Mateo, it appears to be correct in 4.2 and 4.3 docs. Where did you see it otherwise?
|