|
The <hib:load> tag loads a single object into memory.
It wraps the Session.load() method.
The <hib:load> tag's attributes are as follows:
| Attribute |
Description |
Required |
Default |
var |
Name of variable to expose the object |
Yes |
None |
class |
A persistent class |
Yes |
None |
value |
A valid identifier of an existing persistent instance of the class |
Yes |
None |
scope |
Scope of variable to expose the object |
No |
page |
sessionFactory |
Session factory to use (overrides the default) |
No |
Default session factory |
Examples
Example 2 - Change a cat's name
|