From open-jpa-dev-return-863-apmail-incubator-open-jpa-dev-archive=incubator.apache.org@incubator.apache.org Mon Oct 09 23:37:59 2006 Return-Path: Delivered-To: apmail-incubator-open-jpa-dev-archive@locus.apache.org Received: (qmail 69291 invoked from network); 9 Oct 2006 23:37:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Oct 2006 23:37:59 -0000 Received: (qmail 9069 invoked by uid 500); 9 Oct 2006 23:37:58 -0000 Delivered-To: apmail-incubator-open-jpa-dev-archive@incubator.apache.org Received: (qmail 9055 invoked by uid 500); 9 Oct 2006 23:37:58 -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 9046 invoked by uid 99); 9 Oct 2006 23:37:58 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Oct 2006 16:37:58 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Oct 2006 16:37:57 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id F15C07142DF for ; Mon, 9 Oct 2006 16:37:19 -0700 (PDT) Message-ID: <14107628.1160437039979.JavaMail.root@brutus> Date: Mon, 9 Oct 2006 16:37:19 -0700 (PDT) From: "Marc Prud'hommeaux (JIRA)" To: open-jpa-dev@incubator.apache.org Subject: [jira] Assigned: (OPENJPA-66) mapped-superclasses ignore xml mappings In-Reply-To: <19651818.1160393660353.JavaMail.root@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 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/OPENJPA-66?page=all ] Marc Prud'hommeaux reassigned OPENJPA-66: ----------------------------------------- Assignee: Marc Prud'hommeaux > mapped-superclasses ignore xml mappings > --------------------------------------- > > Key: OPENJPA-66 > URL: http://issues.apache.org/jira/browse/OPENJPA-66 > Project: OpenJPA > Issue Type: Bug > Environment: svn 9/10/2006 > Reporter: Costin Leau > Assigned To: Marc Prud'hommeaux > Attachments: orm.xml > > > Mapped superclass ignore any attributes declared for it. In the attached example, the person class should expose only the names fields - however, all fields are used when doing the query. Asking for Vets, results in: > org.springframework.orm.jpa.JpaSystemException: Column not found: T0.ADDRESS in statement [SELECT t0.id, t0.address, t0.city, t0.FIRST_NAME, t0.LAST_NAME, t0.telephone FROM VETS t0 ORDER BY t0.LAST_NAME ASC, t0.FIRST_NAME ASC] {SELECT t0.id, t0.address, t0.city, t0.FIRST_NAME, t0.LAST_NAME, t0.telephone FROM VETS t0 ORDER BY t0.LAST_NAME ASC, t0.FIRST_NAME ASC} > Note that city, address and telephone are not mapped. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira