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:20 UTC
[jira] Created: (OPENJPA-66) mapped-superclasses ignore xml
mappings
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
[jira] Resolved: (OPENJPA-66) mapped-superclasses ignore xml
mappings
Posted by "Costin Leau (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/OPENJPA-66?page=all ]
Costin Leau resolved OPENJPA-66.
--------------------------------
Resolution: Invalid
My mistake. After re-reading the spec and marking the fields as being transient, they stopped being mapped.
> 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
[jira] Assigned: (OPENJPA-66) mapped-superclasses ignore xml
mappings
Posted by "Marc Prud'hommeaux (JIRA)" <ji...@apache.org>.
[ 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
[jira] Updated: (OPENJPA-66) mapped-superclasses ignore xml
mappings
Posted by "Costin Leau (JIRA)" <ji...@apache.org>.
[ 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