What is HQL in Hibernate?

devquora
devquora

Posted On: Feb 22, 2018

 

    1 Answer Written

  •  devquora
    Answered by Prachi

    HQL stands for Hibernate Query Language. It is an object-oriented query language which is much similar to SQL( Structured Query Language). But the only difference is that, while SQL works with tables and columns, HQL operates with persistent objects and their properties. HQL is then translated into traditional queries (SQL), which perform the desired command on the database. HQL provides simpler support to relational operations.

Related Questions

Please Login or Register to leave a response.

Related Questions

Hibernate Interview Questions

What is Hibernate ?

Hibernate is a free software, which is distributed under GNU Lesser General public license 2.1. It is categorized under the Object Relational Mapping (ORM)...

Hibernate Interview Questions

Explain the advantages of Hibernate?

Some of the advantages of Hibernate are: It provides Simple Querying of data. An application server is not required to..

Hibernate Interview Questions

Why is ORM preferred over JDBC?

It allows business code access the objects rather than Database tables. It hides the details of SQL queries from OO log..