Lazy fetching is associated with loading child objects for its parents.
While loading the parent, the selection of loading a child object is to be specified / mentioned in the hbm.xml file.
Hibernate does not load the whole child objects by default.
Lazy = true
means not to load the child objects
- Lazy setting decides whether to load child objects while loading the Parent Object.
- This can be done by a setting in hibernate mapping file of the parent class. Lazy = true.
- By default the lazy loading of the child objects is true.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.