Short answer: I think this is NOT possible.
My reasoning is:
According to Where can I find a list of all HQL keywords? The Hibernate project does not publish HQL grammar on its website; it is available in the full distribution of Hibernate as a .gANTLR file.
.g ANTLR, (hibernate-distribution-3.6.1.Final/project/core/src/main/antlr/hql.g):
selectFrom!
: (s:selectClause)? (f:fromClause)? {
// If there was no FROM clause and this is a filter query, create a from clause. Otherwise, throw
// an exception because non-filter queries must have a FROM clause.
if (
if (filter) {
}
else
throw new SemanticException("FROM expected (non-filter queries must contain a FROM clause)");
}
, HQL FROM, , . , HQL/Hibernate, , - , , session.createFilter (. HQL ?), , FROM.