You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Costin Leau (JIRA)" <ji...@apache.org> on 2006/10/09 13:34:21 UTC
[jira] Updated: (OPENJPA-66) mapped-superclasses ignore xml
mappings
[ http://issues.apache.org/jira/browse/OPENJPA-66?page=all ]
Costin Leau updated OPENJPA-66:
-------------------------------
Attachment: orm.xml
> 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
> 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