openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Costin Leau (JIRA)" <j...@apache.org>
Subject [jira] Created: (OPENJPA-66) mapped-superclasses ignore xml mappings
Date Mon, 09 Oct 2006 11:34:20 GMT
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

        

Mime
View raw message