Filtering the Results of Searches

  • Joseph B. Ottinger
  • Jeff Linwood
  • Dave Minter


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 management system for them.



Copyright information

© Joseph B. Ottinger, Jeff Linwood and Dave Minter 2016

Authors and Affiliations

  • Joseph B. Ottinger
    • 1
  • Jeff Linwood
    • 2
  • Dave Minter
    • 3
  1. 1.YoungsvilleUSA
  2. 2.AustinUSA
  3. 3.LondonUK

Personalised recommendations