Ready for a new episode! :(
Switching to a recent version of hibernate (3.6.4), I was able to receive instances of the desired bean, invoking the scroll() method
on the SQLQuery object and navigating the ScrollableResults.
Anyway, those beans are empty!!
On the contrary, without changing anything else but using the list() method I objtained a list of desired bean with the properies set.
Debugging I noticed that issuing the list() method, the column aliases are calculated after the discovery phase and so the transformer is able to fill any bean, taking advantage of a populated list of column aliases.
On the contrary, when you invoke the scroll() method, the column aliases used by the trasformer are established before the autodiscovery phase and, since I don't provide any information on the query result, the aliases list is empty, so the transformer is not
able to set any property to each bean.
I'm going to check the last version, maybe it's a known issue and has benn fixed.
In the meanthime I opened a issue on JIRA
http://opensource.atlassian.com/project ... e/HHH-6270