Skip to main content

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

Okay, there was a misunderstanding: in the example "this.recommendedRetailPrice.currency", recommendedRetailPrice is the embedded, and currency is a relation on this embedded, and this relation on the embedded should be fetched lazy, or explicitly configured on a query to be loaded, if not by a hint, then in another way.

-----Urspr√ľngliche Nachricht-----
Von: eclipselink-users-bounces@xxxxxxxxxxx [mailto:eclipselink-users-bounces@xxxxxxxxxxx] Im Auftrag von James Sutherland
Gesendet: Dienstag, 26. Januar 2010 16:28
An: eclipselink-users@xxxxxxxxxxx
Betreff: 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.

_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users


Back to the top