Filters are a very useful way to separate some database concerns from the rest of your code. A set of filters can cut back on the complexity of the HQL queries in the rest of your application, at the expense of some runtime flexibility. Instead of using views, which need to be set up at the database level, your applications can take advantage of filters that may be activated or deactivated for individual user sessions.
Unable to display preview. Download preview PDF.