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
Hibernate 5.0.7, Wildfly 10.0.0.Final, MySQL 5.7, Windows 10
added testcase: https://github.com/mmariotti/HHH-10910
run as "mvn test"