Open source reader

Saturday, June 24, 2006

Beiing lazy with Hibernate

Found this article called "Lazy Initialization and the DAO pattern with Hibernate and Spring", here is what you'll read:
  • Hibernate and Lazy Initialization
  • Being Lazy in the Web Layer
  • Interceptor Configuration
  • Filter Configuration
  • Being Lazy in the Business Layer
  • Being Lazy in your Unit Tests
please do not forget to read the comments, some of them are worth a look...
Happy reading !

Oh, by the way, let me remind you if you want to use the OpenSessionInView filter, that the order of filters in web.xml IS the order of filter execution (I lost stupidely a couple of hours because of this)

0 Comments:

Post a Comment

<< Home