The scenario is the following. There was a hql query in our application like
select a.status from table a where A.status = 1
This was working in hibernate3. But when upgraded to hibernate 5.0.12 and jpa 2.1, this query is not working. Gives the following exception:
java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException: Invalid path:
When we updated the alias as in same case, this is working.
select a.status from table a where a.status = 1
But the official documentation states that the alias name can be case insensitive.
So this is a bug or HQL alias names are case sensitive from hibernate 5 onwards.