Hi,

I have the following construct:

<field name="deliveryAddress" type="com.subshell.test.Address">
 <bind-xml name="deliveryAddress" node="element"/>
</field>

in mapping file that is used both for jdo and xml. If castor loads this
mapping file I get the following exception:

java.lang.ClassCastException:
org.exolab.castor.mapping.loader.FieldDescriptorImpl
        at
org.exolab.castor.jdo.engine.SQLEngine$FieldInfo.<init>(SQLEngine.java:1445)
        at org.exolab.castor.jdo.engine.SQLEngine.<init>(SQLEngine.java:313)
        at
org.exolab.castor.jdo.engine.BaseFactory.getPersistence(BaseFactory.java:79)
        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(PersistenceE
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
84)
        at
org.exolab.castor.jdo.engine.DatabaseRegistry.loadDatabase(DatabaseRegistry.
java:300)
        at org.exolab.castor.jdo.JDO.getDatabase(JDO.java:583)
[...]

Should these construct be possible or do I have to separate the xml and jdo
mapping?

Thanks
Christoph

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to