|
The <hib:filter> tag wraps the Session.filter()
method. This allows you to query on a lazily instantiated association.
The <hib:filter> tag's attributes are as follows:
| Attribute |
Description |
Required |
Default |
var |
Name of the variable to expose the query results |
Yes |
None |
scope |
Scope of the variable to expose the query results |
No |
page |
items |
A persistent collection to filter |
Yes |
None |
firstResult |
Set the first row to retrieve. |
No |
0 |
maxResults |
Set the maximum number of rows to retrieve. |
No |
Unlimited |
sessionFactory |
Session factory to use (overrides the default) |
No |
Default session factory |
Examples
Example 6 - Filtering across a child association
|