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: http://openjpa.208410.n2.nabble.com/Ordering-results-obtained-through-query-by-example-tp7584043p7584058.html Sent from the OpenJPA Users mailing list archive at Nabble.com.