Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] fetching of embedded relations

You cannot make an embedded relationship lazy, not sure how you think you are
configuring this?

Embedded relationships are always fetched, as they are part of the same row. 
You cannot use batch reading on an embedded relationship, for the same
reasons.

Are you using an EmbeddedCollection or ElementCollection?  Perhaps include
your mappings.



markus hahn wrote:
> 
> 
> fetching of embedded relations
> 
> Hi folks, 
> 
> we try to fetch embedded relationships which are configured lazy, by using
> the batch hint, and get errors like this: 
> 
> Exception [EclipseLink-6142] (Eclipse Persistence Services -
> 1.2.1.v20100114-r6267): org.eclipse.persistence.exceptions.QueryException 
> 
> Exception Description: The value this.recommendedRetailPrice.currency
> supplied to the query hint eclipselink.batch navigated an illegal
> relationship.  The relationship this.recommendedRetailPrice is not a
> OneToOne or a OneToMany relationship. 
> 
> Which is the way to fetch embedded relationships which are configured
> lazy? 
> 
> Thanks in advance, Markus 
> 
> 
> 


-----
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://old.nabble.com/fetching-of-embedded-relations-tp27304910p27324445.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top