Branch: refs/heads/main
Home:
https://github.com/hibernate/hibernate-orm
Commit: 38fc97feb300fda87a137310d4f667b016333c6f
https://github.com/hibernate/hibernate-orm/commit/38fc97feb300fda87a13731...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2022-01-10 (Mon, 10 Jan 2022)
Changed paths:
M hibernate-core/src/main/antlr/org/hibernate/grammars/hql/HqlParser.g4
M
hibernate-core/src/main/java/org/hibernate/query/hql/internal/SemanticQueryBuilder.java
Log Message:
-----------
sort out some confusion regarding elements() vs value() + indices() vs index()
Strictly, elements() and indices() don't make sense as select items, but we
have tests for this, and users who reported bugs and sent in patches, etc, etc,
so I'm going to go ahead and keep accepting them in the select clause as a
blessed misuse.
I'm not however going to allow them to be dereferenced because no, that's why.