batch fetching is useful incase of ?
-
a) lazy="true"
-
b) lazy="false"
-
c) lazy="on"
-
d) lazy="off"
A
Correct answer
Explanation
Batch fetching in Hibernate is specifically useful when lazy loading is enabled (lazy="true"). It allows Hibernate to load multiple lazy associations in batches rather than one at a time, reducing the number of database queries and improving performance.