HQL is exactly the same as raw SQL and never references entity names.
Practice this question from Quiz: Hibernate ORM, with options and an explanation.
Question
HQL is exactly the same as raw SQL and never references entity names.
Option A
True
Session.createQuery is used for HQL/JPQL-style queries.
Option B — Correct answer
False
Session.createQuery is used for HQL/JPQL-style queries.