After i had problems with lazy loading, I've read the article on
http://hibernate.org/42.html.
After that i know the problem is that i close the session after each request. I must define units of work and not close the session every time.
I also read about the sessioninview module. This module will solve the problem.
Is there any example / tutorial for this module. I can't find it on the web. I can only find small code-examples, but i don't know how to use it exactly.
Now i found this article:
http://www.hibernate.org/43.html
I'm going to read it now. Is it a correct implementation of the sessioninview method?