[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[eclipselink-users] Order By Child Column modifies Join Order
|
- From: Tim Hollosy <hollosyt@xxxxxxxxx>
- Date: Wed, 12 Aug 2009 11:02:34 -0400
- Delivered-to: eclipselink-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=+fxJZNTVMdsPp1a3NcLa0t4ZMBtgCloHHAGi9PSCtrg=; b=ZaaiftrkMU5deYyoBQkQXlx4ni4ZzTWr/U9KJz/UjEknA2JI0McGTeQh9/cgt+xwMV uQ9hpdSijsJyLTH5qOfqpvW6JRCj46qSCjZYqA8Up+U5axE3Gdl+TYVsBrqs2QwTZmxs cjAXBuSZj1IoEJbV8Atw2bTSKKaQBOxYWxz78=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=ml1dlJCnbU63pA+mTaeFY9EgGoK+qL1OPzyPgLFZhGG45gNECk5GSqDDx9F8WlhI8E 7iF6u8ArFBUqG1nQ8H7cHagRd4wNiL8tZRA9XINtokMbe7abqMPna/X7lgqLD7pRkiBL KQj74DI8or51wkeD7NwRyEAn8J+GuyMxlAbNI=
We're getting some odd behavior:
Some JPQL like this
Select parent.label, child.label2
FROM parent
LEFT JOIN child
With the expression API if we add an order on child.label2, the query
is rewritten like this:
Select parent.label, child.label2
FROM child
LEFT JOIN parent
order by child.label2
Is there some hint that we have to use to tell EL to not rewrite like
this when ordering by a child column? Obviously query 2 is very
different from query 1.
Thanks
./tch