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 eliminate 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 Hibernate offers a centralized ...
© Joseph B. Ottinger, Jeff Linwood and Dave Minter 2016
Joseph B. Ottinger, Jeff Linwood and Dave Minter, Beginning Hibernate, 10.1007/978-1-4842-2319-2_11
11. Filtering the Results of Searches
Joseph B. Ottinger1 , Jeff Linwood2 and Dave Minter3
(1)Youngsville, North Carolina, USA
(2)Austin, Texas, USA
(3)London, UK
Get Beginning Hibernate: For Hibernate 5 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.