title: Global hibernate filter on all database queries
body: <p>I am using Spring MVC and Hibernate for my web application. I am looking for a way to create a global hibernate filter of sorts that would apply to each query in my DAO classes without me having to explicitly enable it in each DAO method. </p>
  
  <p>The requirement is to filter records by a user selected session variable. So our query parameter would be held in session and all DAO queries in that session need to filter results by this variable. The purpose here is to avoid all the repeatable filtering code in every DAO method. </p>
  
  <p>Any and all ideas are welcome!</p>