PropertySetterAccessException is missing actual type.

Description

Hey guys,

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!

Environment

None

Assignee

Unassigned

Reporter

Jerry Chin

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Trivial
Configure