IMO this is a feature request, not a bug. As already described, the JPA spec does not support conditional expressions as select items. I am pretty sure hibernate 5 does not support this, but I haven't verified it.