What is lazy loading concept in hibernate?


Lazy loading in hibernate is also known as dynamic function loading in which the components of a program would not be loaded into storage by default when a program is started. Ordinarily,the system loader automatically loads the initial program and all of its dependent components at the same time. In lazy loading concept, the dependents are only loaded as they are specifically requested. Lazy loading improve the performance of a program if most of the dependent components are never actually used or rarely used. Lazy loading can be achieved by setting lazy="false" in .hbm.xml file.


Related #tags:     #java     #hibernate    

Related questions

Looking for change? Click below to prepare for technical interview.

Technical Interview Questions