Home arrow Java arrow Hibernate: Criteria Queries in Depth
JAVA

Hibernate: Criteria Queries in Depth


HQL forces programmers to drop into an SQL-like syntax for certain operations. So it would seem that Hibernate developers still need to know SQL. Fortunately, Hibernate offers a set of APIs that map the SQL functionality to objects. This allows programmers to use an entirely object-oriented approach without falling back on a relational methodology. Keep reading to find out more.

Author Info:
By: A.P.Rajshekhar
Rating: 4 stars4 stars4 stars4 stars4 stars / 155
March 15, 2006
TABLE OF CONTENTS:
  1. · Hibernate: Criteria Queries in Depth
  2. · The Core Classes of Criteria Queries
  3. · Using Criteria Queries
  4. · A Criteria Query in the Real World

print this article
SEARCH DEVARTICLES

Hibernate: Criteria Queries in Depth
(Page 1 of 4 )

In a previous discussion, the focus was HQL. Though HQL works with the object-oriented approach, the developer still needs to know SQL. The only difference is the replacement of the relational methodology with the object-oriented one. In essence, a developer still has to drop into an SQL-like syntax for CRUD operations.

To overcome this obstacle and provide an extensible as well as completely object-oriented solution, Hibernate exposes a set of APIs that map the SQL functionality to objects, eliminating the need for an SQL-like syntax. These APIs constitute the Hibernate Criteria Query APIs. In this discussion the focus will be on Criteria Query APIs, or Criteria Queries in short.

The first section will cover the core classes of Criteria Queries. In the second section, the core classes will be mapped to the core functionalities of SQL. In the third and last section I will rewrite the application developed in the discussion about HQL and extend its functionalities. Thatís the agenda for this discussion.


blog comments powered by Disqus
JAVA ARTICLES

- Java Too Insecure, Says Microsoft Researcher
- Google Beats Oracle in Java Ruling
- Deploying Multiple Java Applets as One
- Deploying Java Applets
- Understanding Deployment Frameworks
- Database Programming in Java Using JDBC
- Extension Interfaces and SAX
- Entities, Handlers and SAX
- Advanced SAX
- Conversions and Java Print Streams
- Formatters and Java Print Streams
- Java Print Streams
- Wildcards, Arrays, and Generics in Java
- Wildcards and Generic Methods in Java
- Finishing the Project: Java Web Development ...

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials