< Prev
Next >

Hibernate Query Language(HQL)

Hibernate provides a way to query the database and access the objects using Hibernate Query Language(HQL), which is an alternative to SQL. Although the queries of Hibernate Query Language(HQL) are quite similar to SQL queries though there is still a difference.

The main difference between Hibernate Query Language(HQL) and SQL is that, using HQL we query the database tables using the class names they were mapped from, in order to fetch their objects, while using SQL, we query the tables using their table names to fetch their records.

Let's understand the Hibernate Query Language(HQL) using some important example in this and the next few articles.

Note :

Please subscribe our social media channels for notifications, we post a new article everyday.

Decodejava Google+ Page Decodejava Facebook Page  DecodeJava Twitter Page

Coming Next