openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marc Prud'hommeaux (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (OPENJPA-66) mapped-superclasses ignore xml mappings
Date Mon, 09 Oct 2006 23:37:19 GMT
     [ 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

        

Mime
View raw message