Hi guys,
 
Can someone show me how lazy loading is achieved in ibatis?
I have a hard time finding any concrete example on this.
 
E.g.
 
Category class has a List of Item, each Category can potentially contain thousands
of Items.
 
Now is enabling lazy loading as simple as following?
 
If it is, is accessing it as simple as calling the Category's POJO getter method to return
a list of Item objects, i.e.  category.getItems()???
 
<sqlMapConfig>
 
  <settings
   ...
   lazyLoadingEnabled="true" <!-- lazy loading -->
   ...
  />
 
  .....
</sqlMapConfig>
 
Or do I have to specify something else?
 

 
Thanks,
 
Sam
 

Reply via email to