Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 4640 invoked from network); 13 Aug 2007 23:48:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Aug 2007 23:48:20 -0000 Received: (qmail 28583 invoked by uid 500); 13 Aug 2007 23:48:18 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 28552 invoked by uid 500); 13 Aug 2007 23:48:18 -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 Delivered-To: moderator for dev@openjpa.apache.org Received: (qmail 9614 invoked by uid 99); 13 Aug 2007 23:29:13 -0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=MSGID_FROM_MTA_HEADER,SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Date: Mon, 13 Aug 2007 16:28:45 -0700 From: Joe Grassel To: OpenJPA Message-ID: Subject: Another FetchPlan question MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Originating-IP: 24.180.146.24 X-Brightmail-Tracker: AAAAAA== X-Brightmail-scanned: yes X-Virus-Checked: Checked by ClamAV on apache.org The reset method did the trick, thank you very much. I do have another question: I have 2 entities, Employee and Manager, and Manager extends Employee, implementing the single table entity inheritance approach. Employee has a M:1 relationship with Manager, so by inheritance, a Manager can have a Manager, and so on. Now, I've set recursion depth to 1, and find() returns the target Employee just fine, and its Manager is also available. However, to my surprise, the Manager's Manager is also available. Is recursion depth sensitive only to the end Entity type, or should be it sensitive to the Entity-type that declares the relationship? It looked like it treated Manager as a completely different entity with regards to recursion depth.