Lazy Initialization and the DAO pattern

Apropos Spring and Hibernate: Good article from Karl Baum’s Weblog with instructions on how to use the OpenSessionInViewInterceptor in a servlet environment.

2 comments

  1. Another useful resource from the Javalobby titled Hibernate: Understanding Lazy Fetching discusses the strategies avoind the ugly LazyInitializationException.

  2. A very useful and detailed article explaining the magics behind lazy loading (default in Hibernate 3) and how the session can be hold open with the help of the TransactionSynchronizationManager from Spring.

Leave a comment