Register now or log in to join your professional community.
The simplest way that Hibernate can apply lazy load behavior upon your entities and associations is by providing a proxy implementation of them. Hibernate intercepts calls to the entity by substituting a proxy for it derived from the entity’s class. Where the requested information is missing, it will be loaded from the database before control is ceded to the parent entity’s implementation.
Lazy Loading means loading child objects while loading the parent object. Settings must be done in hibernate mapping XML/Parent file of the parent class.
If lazy=true means not to load child objects wile loading the parent objects.
If lazy=false means load the child object while loading the parent object.
Default true.