Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Why EL doesn't require OpenEntityManagerInView filter?

I would be curious as well. I've noticed lazy loading works in Spring
2.5+ with eclipselink without any special effort. I'm using
@PersistenceContext to inject the EMF into my DAO...

./tch



On Sun, Dec 26, 2010 at 7:04 AM, Shashikant Kale
<Shashikant.Kale@xxxxxxxxxxxxxxxx> wrote:
> Hello Everybody,
>
>
>
> 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?
>
>
>
> Thanks,
>
> Shashi
>
> _______________________________________________
> eclipselink-users mailing list
> eclipselink-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/eclipselink-users
>
>


Back to the top