Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 17996 invoked from network); 15 Aug 2007 00:34:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Aug 2007 00:34:12 -0000 Received: (qmail 69889 invoked by uid 500); 15 Aug 2007 00:34:10 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 69852 invoked by uid 500); 15 Aug 2007 00:34:10 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 69843 invoked by uid 99); 15 Aug 2007 00:34:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Aug 2007 17:34:10 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Aug 2007 00:34:20 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1IL6pU-0006aL-11 for dev@openjpa.apache.org; Tue, 14 Aug 2007 17:33:44 -0700 Message-ID: <12154658.post@talk.nabble.com> Date: Tue, 14 Aug 2007 17:33:43 -0700 (PDT) From: Jesse Benson To: dev@openjpa.apache.org Subject: Question pertaining to Large Result Set Proxies MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: jpbenson4849@winona.edu X-Virus-Checked: Checked by ClamAV on apache.org I am a bit confused between the wording in the OpenJPA user guide and the results I obtain when trying to use LRS proxies. I have a collection, and I am trying to see if I can set different properties on it. The first being openjpa.FetchBatchSize=5 (set in the PU). When I attempt this with the following code I get 20 as an output. // Persist 20 EntityB entities. // Put them in the collection EntityB_LRS which is annotated LRS in EntityA. // Persist EntityA Query q = em.createQuery("select a from EntityA a"); List results = (List) queryA.getResultList(); Collection lrs = results.get(0).getEntityB_LRS(); System.out.println(lrs.size()); Shouldn't the size of the collection be 5? I thought 5 more are added to the lrs.iterator() after 5 next() calls? I have similar questions for openjpa.jdbc.FetchDirection=reverse. When I get my lrs.iterator() it still has results in the forward direction. I am using a Derby driver, which I believe should support this JDBC 2.0 functionality. How can I verify that the properties pertaining to OpenJPA's Large Result Sets are being honored? Are they hints for how OpenJPA should internally use it's result sets, or are these properties something the end user (like me) sees? If so, how? -- View this message in context: http://www.nabble.com/Question-pertaining-to-Large-Result-Set-Proxies-tf4270462.html#a12154658 Sent from the OpenJPA Developers mailing list archive at Nabble.com.