Hibernate (framework): Difference between revisions

Content deleted Content added
m Reverted 1 edit by 72.23.173.5 (talk) to last revision by Goran.luledzija
Line 39:
 
==Hibernate Query Language (HQL)==
Hibernate provides ana [[SQL]] inspired language called [[Hibernate Query Language]] (HQL) for writing SQL-like queries against Hibernate's data objects. ''Criteria Queries'' are provided as an [[Object-oriented programming|object-oriented]] alternative to HQL. Criteria Query is used to modify the objects and provide the restriction for the objects.
HQL (Hibernate Query Language) is the object-oriented version of SQL. It generates database independent queries so that there is no need to write database-specific queries. Without this capability, changing the database would require individual SQL queries to be changed as well, leading to maintenance issues.