© 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_10

10. Filtering the Results of Searches

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

Your application will often need to process only a subset of the data in the database tables. In these cases, you can create a Hibernate filter to cause queries to ignore the unwanted data. Filters provide a way for your application to limit the results of a query to data that passes the filter’s criteria. Filters are not a new concept – you can achieve much the same effect using SQL database views or, well, named queries – but ...

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.