Return-Path: Delivered-To: apmail-incubator-open-jpa-dev-archive@locus.apache.org Received: (qmail 56065 invoked from network); 13 Feb 2007 17:19:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Feb 2007 17:19:55 -0000 Received: (qmail 89208 invoked by uid 500); 13 Feb 2007 17:20:02 -0000 Delivered-To: apmail-incubator-open-jpa-dev-archive@incubator.apache.org Received: (qmail 89187 invoked by uid 500); 13 Feb 2007 17:20:02 -0000 Mailing-List: contact open-jpa-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: open-jpa-dev@incubator.apache.org Delivered-To: mailing list open-jpa-dev@incubator.apache.org Received: (qmail 89178 invoked by uid 99); 13 Feb 2007 17:20:02 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Feb 2007 09:20:02 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Feb 2007 09:19:54 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 91D187142E4 for ; Tue, 13 Feb 2007 09:19:32 -0800 (PST) Message-ID: <18465722.1171387172594.JavaMail.jira@brutus> Date: Tue, 13 Feb 2007 09:19:32 -0800 (PST) From: "Kevin Sutter (JIRA)" To: open-jpa-dev@incubator.apache.org Subject: [jira] Created: (OPENJPA-143) Problems with Single Table Inheritance Strategy (and Discriminator Type of Integer) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Problems with Single Table Inheritance Strategy (and Discriminator Type of Integer) ----------------------------------------------------------------------------------- Key: OPENJPA-143 URL: https://issues.apache.org/jira/browse/OPENJPA-143 Project: OpenJPA Issue Type: Bug Components: jpa Reporter: Kevin Sutter Using the @DiscriminatorType of Integer with Single Table Inheritance, I've come across two problems... o The @DiscriminatorValue seems to be required on abstract classes in the hierarchy. This should not be required. Actually, according to section 9.1.31 of the spec, this annotation should only be required on concrete classes. But, without this annotation, I am getting an exception about not being able to cast a String to an Int. o This exception that I am receiving with a "missing" @DiscriminatorValue would indicate that the default value being provided by OpenJPA is a String all the time instead of basing the default the value off of the DiscriminatorType of Integer. This is further described in Table 21 of section 9.1.31 of the spec. As described, I have a workaround by specifying a @DiscriminatorValue on the abstract class, but these seem to be real problems that need to be addressed. Thus, this defect. Kevin -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.