© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
J. B. Ottinger et al.Beginning Hibernate 6https://doi.org/10.1007/978-1-4842-7337-1_9

9. Searches and Queries

Joseph B. Ottinger1  , Jeff Linwood2 and Dave Minter3
(1)
Youngsville, NC, USA
(2)
Austin, TX, USA
(3)
London, UK
 

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 ...

Get Beginning Hibernate 6: Java Persistence from Beginner to Pro now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.