Hibernate provides a SQL-inspired language called Hibernate
Query Language (HQL) that allows you to write SQL-like queries against
Hibernate data objects. Criteria Queries are provided as an object-oriented
alternative to HQL. Criteria The query is used to modify objects and provide
restriction for objects.
HQL (Hibernate Query Language) is the object-oriented
version of SQL. It generates queries that are independent of the database, so
that it is not necessary to write database-specific queries. Without this
functionality, modifying the database would require modification of individual
SQL queries, resulting in maintenance problems.

No comments:
Post a Comment