openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pinaki Poddar <>
Subject Re: Ordering results obtained through query-by-example
Date Fri, 31 May 2013 17:46:30 GMT
Most likely it is a programming error.
>             List<Order> orderList = makeOrderList(builder,
> qDef.from(persistentClass), orderFields);

this call causes a side-effect of CROSS JOIN which is possibly not your
intention.  Your code has already called
>    Root<E> from = qDef.from(persistentClass); 
few lines earlier. While passing argument to makeOrderList(...) the second
argument joins 'persistentClass' again.

 Please change the call argument to remove the side-effect and see if that
changes anything.



Pinaki Poddar
Chair, Apache OpenJPA Project
View this message in context:
Sent from the OpenJPA Users mailing list archive at

View raw message