I took a look at this bug:
HBX-482
Fetch keyword in a select HQL cause errors the "Hibernate Query Result"
The reported problem is that if you submit a query that uses "fetch"
via the eclipse plugin's HQL scratchpad
you get back an exception in the Hibernate Query Result.
The exception happens during a call to Query.getReturnAliases. I think
the bug is in Hibernate itself, not in the tools. I can get exactly
the same error and stack trace (the hibernate part at least) in a
simple test program that calls getReturnAliases on a query containing
a fetch. Essentially the same thing happens for getReturnTypes.
I'd like to file a bug but you're supposed to discuss things in the forum first. But I thought this bug, being pretty obscure, might just get lost in the noise if I posted on the main user's forum.
|