This is a Spring Data issue, not a Hibernate one.
As long as Spring Data generates the proper entity query, the query should work just fine.
However, if you can replicate the issue using plain JPQL or Criteria API, then I will reopen it.