Where can I find a list of all HQL keywords?

2019-06-20 06:20发布

问题:

Where can I find a list of all HQL keywords?

回答1:

In the full Hibernate source download there's a grammar\hql.g file, which is the ANTLR language definition. You can view the latest version of this file from the official GitHub source repository here.

In the tokens section you'll find all the tokens, including the keywords (they're the ones defined as strings, e.g. ALL="all").



回答2:

Try this...not sure if it's complete or exact, but it may be, as it's a list of HQL tokens.



回答3:

Here is the BNF for Hibernate 2, I am not sure if this is in the same format as the hql.g files as mentioned above:

http://www.hibernate.org/89.html