Searches and Queries

  • Joseph B. Ottinger
  • Jeff Linwood
  • Dave Minter


In the last chapter, we discussed how the Hibernate session is used to interact with the database. Some of the session's methods take query strings in their parameter lists or return Query objects. These methods are used to request arbitrary information from the database. In order to fully show how they're used, we must introduce the Hibernate Query Language (HQL), used to phrase these requests. As well as extracting information (with SELECT), HQL can be used to alter the information in the database (with INSERT, UPDATE, and DELETE). We cover all of this basic functionality in this chapter. Note: Hibernate's query facilities do not allow you to alter the database structure.


Query Object Query Interface Delete Statement Public Class Object Array 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Joseph B. Ottinger, Jeff Linwood and Dave Minter 2016

Authors and Affiliations

  • Joseph B. Ottinger
    • 1
  • Jeff Linwood
    • 2
  • Dave Minter
    • 3
  1. 1.YoungsvilleUSA
  2. 2.AustinUSA
  3. 3.LondonUK

Personalised recommendations