Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] ReadAllQuery fetch all

Hi Martin,

If you are using JPQL, JPQL allows you to specify fetch joins that will cause relationships to be automatically loaded. Have you tried that?

If you are using EclipseLink expressions, there is an addJoinedAttribute method you can use on your query.

-Tom

Martin Janda wrote:
Hello,
can you help me? please. I have Entity with lazy mappings. I need to read all Entity attributes Eager&Lazy trough ReadAllQuery (ScrollableCursor) and detach them. I need to use Entities after closing EM and EMF. So they can no longer fetch lazy mappings. I need to work with selected Entities from JTable (needs lazy) in another context (needs all attributes including lazy mappings). Is there any way how to do it in EclipseLink 1.1.3 Java SE, I prefer annotations or direct methods in EM/EMF/UOW.
Thank you very much.
   Martin

PS Sorry for my english
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users


Back to the top