Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] Not retreiving OneToMany collections with lazy and eager option

Hi all,

I am currently trying to improve performance of our application . One of the
thing I wanted to use is lazy loading of oneToMany collections. But it looks
like the data is not retrieved eventhough it is present in the database. The
scenario is we upload the application form through web service, it generates
the form  data and if the form is not valid it generates rejection list in
the database. On looking for this same form on our web application the
rejection list is not retrieved from the database. I have used fetch type is
lazy for this collection. One thing we have noticed that after clearing
cache using the following code from the screen the rejection list start
appearing on the screen.
( ( JpaEntityManager ) getEntityManager().getDelegate()
).getServerSession(). getIdentityMapAccessor().invalidateAll(); 

Is there something I am missing here ?

My colleague observed even Eager fetching is not working .

Thanks,

Kiran


-- 
View this message in context: http://old.nabble.com/Not-retreiving-OneToMany-collections-with-lazy-and-eager-option-tp30277461p30277461.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top