siva636
siva636

Reputation: 16441

Usecases that really need Hibernate HQL over JPQL

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 JPQL) to implement them?

Upvotes: 2

Views: 1577

Answers (2)

siva636
siva636

Reputation: 16441

I conclude that there is no practical usecase that is impossible or considerably difficult to implement only with JPQL (without using HQL)

Upvotes: 0

JB Nizet
JB Nizet

Reputation: 691775

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.

Upvotes: 4

Related Questions