Just had a fancy ride with AliasToBeanResultTransformer, that's how it fold out:
I was trying to group by my result with HQL as follows:
It was accompanied by a Java bean defined below:
An exception is thrown after executing this hql:
It's obvious to see the type of count is mismatched, but still this exception failed to reveal the actual type of count, I spent several times to figure it out (yea, break-point!)
Can someone just make it more clear ?
Thanks in advance! and have a nice day!