Glad having found this after almost 3 years again. Just to add on the description: this is also broken for plain JPQL usage.
Oliver Gierke, does the above mean that it's still an issue on ORM 4?