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
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
Rights 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
DOI: https://doi.org/10.1007/978-1-4302-2851-6_9
Publisher Name: Apress
Print ISBN: 978-1-4302-2850-9
Online ISBN: 978-1-4302-2851-6
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)