Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Use of eclipselink hinting

Using "JOIN FETCH" in JPQL should work, the hint is only required for nested
join fetchs which are not part of the JPQL spec.

Please include your full query code and JPQL and the SQL generated for it.



Dave Brosius-2 wrote:
> 
> Greetings, i've noticed that for my queries that specify join fetches,
> EclipseLink doesn't actually do the join fetch. I then noticed the
> specification to do
> 
> query.setHint("eclipselink.join-fetch", "t.project");
> 
> and that does, indeed, cause a join fetch.
> 
> Am I to understand that specifying 'join fetch' by itself in queries does
> nothing in eclipse link and i must use the hinting as above?
> 
> 


-----
---
http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland 
http://www.eclipse.org/eclipselink/
 EclipseLink ,  http://www.oracle.com/technology/products/ias/toplink/
TopLink 
Wiki:  http://wiki.eclipse.org/EclipseLink EclipseLink , 
http://wiki.oracle.com/page/TopLink TopLink 
Forums:  http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink , 
http://www.nabble.com/EclipseLink-f26430.html EclipseLink 
Book:  http://en.wikibooks.org/wiki/Java_Persistence Java Persistence 
-- 
View this message in context: http://www.nabble.com/OneToOne-Mapping-works-with-FetchType.EAGER-but-not-with-FetchType.LAZY--%3E-Exception-when-deploying-%28SGES-2.1%29-tp21711849p21729668.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top