Skip to main content

Searches and Queries

  • Chapter
  • 666 Accesses

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 you to 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. Hibernate’s query facilities do not allow you to alter the database structure.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   34.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   44.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2010 Jeff Linwood and Dave Minter

About this chapter

Cite this chapter

Linwood, J., Minter, D. (2010). Searches and Queries. In: Beginning Hibernate. Apress. https://doi.org/10.1007/978-1-4302-2851-6_9

Download citation

Publish with us

Policies and ethics