I got a problem when i try to read my class TotoExtend :
I do a simple request like : "select t from TotoExtend t"
And i get this message error :
Exception in thread "main" org.exolab.castor.jdo.PersistenceException:
Requested to load/fetch an object of type TotoExtend, where persistent
storage returned an object of type class Toto
at
org.exolab.castor.persist.TransactionContext.load(TransactionContext.java:553)
at
org.exolab.castor.persist.QueryResults.fetch(QueryResults.java:229)
at
org.exolab.castor.jdo.engine.OQLQueryImpl$OQLEnumeration.hasMore(OQLQueryImpl.java:574)
at
org.exolab.castor.jdo.engine.OQLQueryImpl$OQLEnumeration.hasMore(OQLQueryImpl.java:557)
this is my mapping file :
<class name="Toto" identity="id">
<description>Toto</description>
<map-to table="toto"/>
<field name="id" type="integer" >
<sql name="_id" type="integer"/>
</field>
<field name="RA" type="double" >
<sql name="_ra" type="double"/>
</field>
<field name="DEC" type="double">
<sql name="_dec" type="double"/>
</field>
<field name="catalogue" type="java.lang.String">
<sql name="_catalogue" type="char"/>
</field>
</class>
<class name="TotoExtend" extends="Toto">
<description>totoExtend</description>
<map-to table="totoextend"/>
<field name="nombre" type="integer" >
<sql name="_nombre" type="integer"/>
</field>
</class>
> Simply do the extends-Attribute in the mapping-File:
>
> <class name="TotoExtend" extends="Toto">
>
> <field name="number>
>
> ...
>
> </class>
>
> Bachlechner Alexander
>
> Economy Line Software GmbH
>
> Tirol/Austria
> ----------------------------------------------------------- If you
> wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev