Hibernate Filters - I
29 August 2008In the next few posts, I will introduce an innovative Hibernate approach called filters. A Hibernate filter is a global, named, parameterized filter that may be enabled or disabled for a particular Hibernate session. Filters can be used like database views.
Filters were introduced in Hibernate3. Using filters, you can define filter criteria and attach those filters at class and a collection level. A filter criteria is actually defining a restriction clause. This is same as “where” attribute available on the class and various collection elements. Thing to note is that filter conditions can be parameterized.
Application makes the decision at runtime whether given filters should be enabled and what their parameter values should be.
continued …
Related Posts:
Top Of Page | Trackback
If you found this page useful, consider linking to it. Simply copy and paste the code below into your web site.
It will look like this: Hibernate Filters - I