Why is the exception here necessary? I don't see a reason to disallow this usage. Could you please explain? https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/main/java/org/hibernate/hql/internal/ast/HqlSqlWalker.java#L498