In cases where we have no select clause associated with the query, Hibernate sometimes chooses the “wrong” interpretation. I say “wrong” because it was not completely defined before and a few of the well-defined cases had bugs.
- If the requested return is an array (Object[].class e.g.), we will return all roots as well as all non-fetched joins
- Otherwise, only the single root is returned. It is an error for such a query to have multiple roots (cross joins should probably be included here as well, but are not at the moment)
|