What is lazy fetching in hibernate?- Lazy fetching is associated with child objects loading 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.What is lazy fetching in hibernate?- 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.
|