I’m pretty sure the parameter handling is fixed in the latest 6.x code - your test passes there anyway. However, there is a problem with result-class handling in that case - see https://hibernate.atlassian.net/browse/HHH-16077