You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Marc Prud'hommeaux (JIRA)" <ji...@apache.org> on 2006/10/10 01:37:19 UTC

[jira] Assigned: (OPENJPA-66) mapped-superclasses ignore xml mappings

     [ 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