Question: why do we need hql?
Answer: Need of HQL Provides full support for relational operations. It is possible to represent SQL Queries in the form of objects in HQL which uses classes and properties instead of tables and columns. Return results as objects. In other words, the query results are in the form of objects rather than the plain text.