Return-Path: X-Original-To: apmail-db-jdo-dev-archive@www.apache.org Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2C6E99AD1 for ; Sat, 7 Jan 2012 14:41:09 +0000 (UTC) Received: (qmail 24590 invoked by uid 500); 7 Jan 2012 14:41:04 -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 24555 invoked by uid 99); 7 Jan 2012 14:41:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Jan 2012 14:41:02 +0000 X-ASF-Spam-Status: No, hits=-2001.6 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Jan 2012 14:41:00 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 69AC413D392 for ; Sat, 7 Jan 2012 14:40:39 +0000 (UTC) Date: Sat, 7 Jan 2012 14:40:39 +0000 (UTC) From: "Andy Jefferson (Commented) (JIRA)" To: jdo-dev@db.apache.org Message-ID: <724099223.18437.1325947239434.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <649061176.10116.1322151940142.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (JDO-702) Support for specification of embedded inherited objects MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JDO-702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13181973#comment-13181973 ] Andy Jefferson commented on JDO-702: ------------------------------------ Sure, but what form does this testcase take? I was thinking of a simple subclass of Address, however a change to the company model seems to imply creating duplicated interfaces and implementations across various packages ... not just company, but also companyAnnotatedFC, companyAnnotated JPA, companyAnnotatedPC, companyAnnotatedPI etc. All I want is a subclass and a way of instantiating it (e.g CompanyFactory.newXXXAddress), without having to dup it many times. What is the minimum that this company model will accept ? > Support for specification of embedded inherited objects > ------------------------------------------------------- > > Key: JDO-702 > URL: https://issues.apache.org/jira/browse/JDO-702 > Project: JDO > Issue Type: New Feature > Components: api, specification, tck > Reporter: Andy Jefferson > Attachments: JDO-702.patch > > > While JDO2+ allows specification of embedded objects stored with primary objects, it doesn't have any specific way of specifying the embedded object as being inherited and how you would persist it. In particular there is no way to define a discriminator (column) for the embedded object. If we have an example from the JDO spec, and if we have a subclass of Address as also persistable, then we need to specify the discriminator for "primaryAddress" field. > > ... > > > > > > > > > > > > So the XSD/DTD need updates to allow under , the JDO Metadata API needs to allow this also, and the @Embedded annotation needs a "discriminator" attribute adding. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira