|
The <hib:find> tag wraps the Session.find() method.
It is technically creating a Query so as to access more advanced controls
like maxRows and firstResult.
See also: <hib:param>.
The <hib:find> 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 |
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 1 - Find a cat
Example 4 - Find with parameters
Example 7 - Deleting fat cats
|