Why not to use Spring’s OpenEntityManagerInViewFilter
As you said, the OpenSessionInView filter is very convenient in web applications. Regarding the limitations you mentioned: 1) Loading several lazy associations will result in multiple database transactions, a possible hit on performance. Yes, going to the DB often might lead to performance problems. Ideally you want to fetch all the data you need in … Read more