Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 6481 invoked from network); 8 May 2008 08:23:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 May 2008 08:23:19 -0000 Received: (qmail 13131 invoked by uid 500); 8 May 2008 08:23:21 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 12993 invoked by uid 500); 8 May 2008 08:23:20 -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 Received: (qmail 12982 invoked by uid 99); 8 May 2008 08:23:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 May 2008 01:23:20 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 May 2008 08:22:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B6EFD234C107 for ; Thu, 8 May 2008 01:22:55 -0700 (PDT) Message-ID: <1750851760.1210234975734.JavaMail.jira@brutus> Date: Thu, 8 May 2008 01:22:55 -0700 (PDT) From: "Thomas Sandor (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Updated: (OPENJPA-386) org.apache.openjpa.meta.ClassMetaData.validateAppIdClass() does not take @MappedSuperclass into account In-Reply-To: <16316748.1190903210765.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-386?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Sandor updated OPENJPA-386: ---------------------------------- Affects Version/s: 1.0.2 > org.apache.openjpa.meta.ClassMetaData.validateAppIdClass() does not take @MappedSuperclass into account > ------------------------------------------------------------------------------------------------------- > > Key: OPENJPA-386 > URL: https://issues.apache.org/jira/browse/OPENJPA-386 > Project: OpenJPA > Issue Type: Bug > Components: kernel > Affects Versions: 0.9.7, 1.0.0, 1.0.2 > Environment: BEA WebLogic 10.0 under Windows XP SP1 > Reporter: Matthew L. Schwickerath > > We have a @MappedSuperclass that is the base for all of our entity bean classes. This class contains the @Version (and @Column for the version field) that all of our entity beans use. But, in ClassMetaData.validateAppIdClass(), if an entity bean class has a superclass, and the entity bean has an @IdClass, it expects that superclass to have an @IdClass also. All of our entity beans have an @IdClass (even if they only have a single part key), but our @MappedSuperclass does not have an @IdClass. This scenario works under JBoss 4.2.0 and Sun AS 9, but produces a NullPointerException in OpenJPA at: > if (_super != null) { > // concrete superclass oids must match or be parent of ours > ClassMetaData sup = getPCSuperclassMetaData(); > if (!sup.getObjectIdType().isAssignableFrom(_objectId)) // <--- NullPointerException here -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.