Johannes Brodwall has a good article over at java.net on implementing lazy loading. Of course most ORM tools implement this already, and you would probably use them instead. But the article gives good background for the mechanisms present in current ORM solutions. And as Johannes points out; sometimes you might just have to implement some stuff yourself because the tools just doesn’t cut it.
Categories