what is lazy initialisation in hibernate?
Hibernate supports the feature of lazy initilasation for both entities and collections. What this actually means is, the Hibernate engine loads only those objects that we are querying for and doesnt try to fetch other entities(that are associated with the entity we are querying) or collections. An attribute ‘lazy’ can be used to let Hibernate know if the associated entity or collection has to be lazily loaded or prefetched.