Hibernate - What is lazy fetching in hibernate?

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.
Hibernate - Difference between sorted and ordered collection
Difference between sorted and ordered collection in hibernate - The sorted collection is a collection that is sorted using the Java collections framework....
Hibernate - Difference between transient and detached objects
Difference between transient and detached objects - Transient objects do not have association with the databases and session objects...
Hibernate - Advantages and disadvantages of detached objects
Advantages and disadvantages of detached objects - Detached objects passing can be done across layers upto the presentation layer without using Data Transfer Objects. ...
Post your comment