I know JPQL is a subset of HQL.
Are there any practical usecases (please give examples) that really need HQL specific features to be used (that means it is impossible or considerably difficult with JP开发者_如何学PythonQL) to implement them?
Each time you want to use one of the expressions/functions listed in the HQL documentation, and which is not supported by JPQL :
- second, minute, etc.
- user additions to the dialect
- etc.
I conclude that there is no practical usecase that is impossible or considerably difficult to implement only with JPQL (without using HQL)
精彩评论