Advertisement

Searches and Queries

  • Joseph B. Ottinger
  • Dave Minter
  • Jeff Linwood
Chapter

Abstract

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.

Keywords

Product Product Query Object Query Interface Delete Statement Public Class 
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 2014

Authors and Affiliations

  • Joseph B. Ottinger
    • 1
  • Dave Minter
  • Jeff Linwood
  1. 1.NCUnited States

Personalised recommendations