CriteriaQuery multiselect root.type() throws ClassCastException

Description

performing this query:

a ClassCastException is thrown:

Instead, using plain JPQL, the query executes without problem:

testcase here: https://github.com/mmariotti/HHH-10910
run as "mvn test"

Thank you

Environment

Hibernate 5.0.7, Wildfly 10.0.0.Final, MySQL 5.7, Windows 10

Activity

Show:
Michele Mariotti
July 12, 2016, 11:39 AM

added testcase: https://github.com/mmariotti/HHH-10910

run as "mvn test"

Assignee

Unassigned

Reporter

Michele Mariotti

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

Major
Configure