Title: Castor inheritence from existing domain model

Hi,
I have 2 classes (class ChildA, class ChildB) that both implement an interface (InterfaceA). A third class (class C) contains a list of interfaceA.

Now my XML schema has a element that maps to class C which has a sequence of elements that map to ChildA and ChildB. I would like these to be added to the list in C but I`m only able to add one <xml-bind> tag to the class mapping for class C. Does anyone know if this kind of behaviour is possible and if so how is it done??????? I`ve checked the docs on the Castor site and can`t see any way of doing this except by using the <extends> tag but I`m not sure how this works as its not that well documented.

A second question is if the source generator is used to generate the source files from a schema can these be annotated somehow so extra functionality can be added to these source files which won`t be over written if the generator is run again. 

Many Thanks

Darran

 
       This message may contain privileged and/or confidential information.  If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so.  Thank you.

Reply via email to