Using the OpenSessionInViewInterceptor for Spring + Hibernate3
Posted January 21st, 2008 by Paul CoddingIf you’re like me and have written Spring web applications using Hibernate for persistence, you’ve probably seen this error when using FetchType.LAZY in your @OneToMany annotation: “failed to lazily initialize a collection of role: your.Class.assocation no session or session was closed.” If you are using lazy loading rather than eager loading for obvious reasons, and [...]