Return-Path: Delivered-To: apmail-db-jdo-user-archive@www.apache.org Received: (qmail 48921 invoked from network); 26 Oct 2007 02:32:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Oct 2007 02:32:34 -0000 Received: (qmail 43117 invoked by uid 500); 26 Oct 2007 02:32:21 -0000 Mailing-List: contact jdo-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-user@db.apache.org Delivered-To: mailing list jdo-user@db.apache.org Received: (qmail 43106 invoked by uid 99); 26 Oct 2007 02:32:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Oct 2007 19:32:21 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [203.217.28.148] (HELO mellotron.mel.fluencyfinancial.com) (203.217.28.148) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 26 Oct 2007 02:32:23 +0000 Received: from [192.168.1.122] (unknown [192.168.1.122]) by mellotron.mel.fluencyfinancial.com (Postfix) with ESMTP id 2E75B11A561 for ; Fri, 26 Oct 2007 12:31:47 +1000 (EST) Mime-Version: 1.0 (Apple Message framework v752.3) Content-Transfer-Encoding: 7bit Message-Id: <53794365-84F5-44C5-8A54-EF6EFB49233E@bund.com.au> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: jdo-user@db.apache.org From: Drew Lethbridge Subject: column sharing Date: Fri, 26 Oct 2007 12:31:45 +1000 X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org Greetings, I have a question about JDO2.0. When using an inheritance strategy of "superclass-table", is it valid for two separate subclasses which both have an identically-typed field to actually share a database column, rather than specifying a separate column for each of the fields? As far as I can tell, the JDO spec is not clear on this. Is it completely JDO-vendor implementation dependent (i.e. non-portable)? Below is an illustrative example. B extends A and also C extends A. The fields B.f1 and C.f2 are both declared as references to a persistence type "F" but defined to share the column named F_JDOID. Any potential problems with this? Thanks. Drew.