Hi Mehmet,
Yes, I'm using a mapping for JDO and another for XML.
Regards
Cl�vis Wichoski
Supridatta
>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<
On 15/03/02, 08:17:10, "Sariyar Mehmet /OI&T ext."
<[EMAIL PROTECTED]> wrote regarding castor mapping-error:
> Hi there,
> At November 6 2001 you sent that following mail to castor-community,
> I have now the same exception and would like to know whether you have
> already solved that problem or to do by separating xml-mapping in a
> different file.
> Thanks in pre for your re-mail.
> Regards,
> Mehmet Sariyar
> >>>>
> Hi, Castor Team
> with map:
> <class name="myapp.Quarter" identity="oid" access="shared">
> <description>Quarter of Address</description>
> <cache-type type="count-limited" capacity="1000"/>
> <map-to xml="Quarter" table="QUARTER"/>
> <field type="string" required="false" name="oid" lazy="false"
> direct="false">
> <sql type="char" name="OID" dirty="check"/>
> <xml node="element" name="oid"/>
> </field>
> <field type="string" required="false" name="description"
> lazy="false" direct="false">
> <sql type="char" name="DESCRIPTION" dirty="check"/>
> <xml node="element" name="description"/>
> </field>
> <field type="string" required="false" name="abbreviation"
> lazy="false" direct="false">
> <sql type="char" name="ABBREVIATION" dirty="check"/>
> <xml node="element" name="abbreviation"/>
> </field>
> <field type="string" required="false" name="time" lazy="false"
> direct="false">
> <xml node="element" name="time"/>
> </field>
> </class>
> the field time is to XML only and not for JDO, if I load this map, JDO
> throws an Exception:
> java.lang.ClassCastException:
> org.exolab.castor.mapping.loader.FieldDescriptorImpl
> at
>
org.exolab.castor.jdo.engine.SQLEngine$FieldInfo.<init>(SQLEngine.java:144
9)
> at
org.exolab.castor.jdo.engine.SQLEngine.<init>(SQLEngine.java:313)
> at
>
org.exolab.castor.jdo.engine.BaseFactory.getPersistence(BaseFactory.java:7
9)
> at
> org.exolab.castor.persist.ClassMolder.resolve(ClassMolder.java:518)
> at org.exolab.castor.persist.LockEngine.<init>(LockEngine.java:168)
> at
>
org.exolab.castor.persist.PersistenceEngineFactory.createEngine(Persistenc
eE
> ngineFactory.java:83)
> at
>
org.exolab.castor.jdo.engine.DatabaseRegistry.<init>(DatabaseRegistry.java
:2
> 04)
> at
>
org.exolab.castor.jdo.engine.DatabaseRegistry.<init>(DatabaseRegistry.java
:1
> 63)
> at
>
org.exolab.castor.jdo.engine.DatabaseRegistry.loadDatabase(DatabaseRegistr
y.
> java:289)
> at org.exolab.castor.jdo.JDO.getDatabase(JDO.java:559)
> ...
> Ok, its a bug and I need to use a map for XML and other for JDO, or
> exist another way?
> Thanks and congratulations for good work.
> Cl�vis Wichoski
> Supridatta
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev