|
The <hib:session> tag defines when an extended session
is opened and closed. You do not have to wrap this tag around other hibtags,
but you can use it if you need to perform multiple actions in a single
session.
The <hib:session> tag's attributes are as follows:
| Attribute |
Description |
Required |
Default |
var |
Name of variable to expose the session |
No |
None |
scope |
Scope of variable to expose the session |
No |
page |
sessionFactory |
Session factory to use (overrides the default) |
No |
Default session factory |
Examples
Example 2 - Change a cats's name
Example 3 - Create a new cat
Example 5 - Refreshing an object in an HttpSession attribute
Example 6 - Filtering across a child association
Example 7 - Deleting fat cats
|