|[eclipselink-users] Why EL doesn't require OpenEntityManagerInView filter?|
As I use more of eclipselink more I get to know of its features and more I end up admiring it!
I first started using ORM with toplink JPA implementation. I never paid much attention to other jpa implementations like hibernate/open JPA etc. However when I am trying to get insight, I know of some issues and solutions to them. One of them being OpenSessionInView filter suggested by hibernate for lazy loading issues. For JPA spring provides OpenEntityManagerInView implementation. However I am surprised to see that though hibernate JPA requires this to avoid LazyIntializationException or OpenJPA requires for successfully fetching the data, eclipselink doesn’t require it. Similar experience is shared on this blog.
I was wondering how eclipselink manages to load the lazily loaded objects even after the entity manager is closed. Would somebody throw some light on this?
Back to the top