From jdo-dev-return-8929-apmail-db-jdo-dev-archive=www.apache.org@db.apache.org Tue Jan 18 14:01:43 2011 Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 11063 invoked from network); 18 Jan 2011 14:01:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Jan 2011 14:01:37 -0000 Received: (qmail 90306 invoked by uid 500); 18 Jan 2011 14:01:33 -0000 Mailing-List: contact jdo-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-dev@db.apache.org Received: (qmail 90294 invoked by uid 99); 18 Jan 2011 14:01:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jan 2011 14:01:32 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [212.159.7.35] (HELO relay.ptn-ipout01.plus.net) (212.159.7.35) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jan 2011 14:01:24 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: As4FACcsNU1UXeb6/2dsb2JhbACWQo4Yc8IJhVAEjkI Received: from outmx05.plus.net ([84.93.230.250]) by relay.ptn-ipout01.plus.net with ESMTP; 18 Jan 2011 14:01:02 +0000 Received: from [84.93.136.33] (helo=rookie.persistability.co.uk) by outmx05.plus.net with esmtp (Exim) id 1PfC7K-000089-1p for jdo-dev@db.apache.org; Tue, 18 Jan 2011 14:01:02 +0000 From: Andy Jefferson To: jdo-dev@db.apache.org Subject: Inheritance strategy Date: Tue, 18 Jan 2011 14:01:00 +0000 User-Agent: KMail/1.12.4 (Linux/2.6.31.13-desktop-1mnb; KDE/4.3.5; i686; ; ) Organization: DataNucleus MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201101181401.00264.andy@datanucleus.org> X-Virus-Checked: Checked by ClamAV on apache.org Hi, while JDO inheritance strategies offer more flexibility in general than JPA, there appears to be one situation not catered for; namely the JPA strategy of TABLE_PER_CLASS. I'd propose adding a further JDO strategy of "complete-table" which, when specified on a class means that that class has a table providing columns for all fields of that class and any persistent superclasses. See http://www.datanucleus.org/products/accessplatform_3_0/jdo/orm/inheritance.html Comments ? -- Andy DataNucleus (http://www.datanucleus.org)