Jun 15th, 2006, 05:23 AM
How to test lazy loading for ibatis?
I am extending SqlMapClientDaoSupport to implement my
Now how do I write unit test to convince myself that
the lazy loading feature of iBatis is working?
E.g. A Category object has a complex collection of Item objects so the code below won't load the collection by
default (correct me if I am wrong)
Category cat = categoryDao.getCategory( new Long(1) );
I assume collection will be loaded if I try to access
List items = cat.getItems();