Hi:
Kindly help with the below question. Pointers to docs that describe
toplink's lazy loading feature will be greatly appreciated.
When is a relationship loaded if the fetch attribute is set to LAZY- on
use of the getter or when doing an operation on the relationship entity
after using the getter. Example:
- in a One to Many mapping would company.getLocations() load the many
side (Location) or is it expected to get loaded only on doing something
with it eg: company.getLocations().iterator()?
- Same question for Many To One, when will the relationship be loaded,
on execution of employee.getDepartment() or
employee.getDepartment().getName()?
I found
http://www.oracle.com/technology/products/ias/toplink/jpa/resources/toplink-jpa-extensions.html#LazyLoading
but it does not help with the above question.
thanks.
varun.