I think the syntax is correct
  but you check. are u comparing classes of same type that is:delivery
address and in ..xml file
go to http://castor.exolab.org/xml-mapping.html#3.4-The-<field>-element
   and you will definately find a solution
  chao
  man 
 have a nice day and good work
 

-----Original Message-----
From: Christoph Kiehl [mailto:[EMAIL PROTECTED]]
Sent: 16 May 2002 12:55it 
To: [EMAIL PROTECTED]
Subject: [castor-dev] Field without jdo mapping but bind-xml possible?


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

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

Reply via email to