Okay, using the method setFetchBatchSize(int size) works as desired but the result is not serializable so an exception will occur after trying to send the result to a remote client. The simple solution to this problem is: copy the result list content to a new list and send the copy to the client. That's it.
-- View this message in context: http://openjpa.208410.n2.nabble.com/Using-FetchPlan-setFetchBatchSize-feature-leads-to-java-io-NotSerializableException-tp6771824p6824148.html Sent from the OpenJPA Users mailing list archive at Nabble.com.