Sorry for the half/repost hit send accidently here is the whole message:
 
I have a three level deep heirachy and I am setting up the mapping files to be able to 
marshall/unmarshall them without using descriptors.
I can get the mapping to work properly if 
1. i put all the class declarations into a single mapping file or
<mapping>
 
 <class></class>
 <class></class>
</mapping>
2. if I include all the mapping sub files into one single master file
<mapping>
  <include href="include/child1.xml"/>
  <include href="include/child2.xml"/>
 </mapping>
 
However if i try to break them up up along their relatinships then I have problems 
unmarshalling the xml:
<mapping>
<include href="parentClass.xml"/>
<class extends="com.register.someparent"></class>
</mapping>
This will fail to find the descriptors for the parents, however the loader will load 
all the xml file but for some reason it is unable to access the desecriptors.
Is there a way to make this method work? it makes it much easier for me to maintain 
the objects if they can be related in the mapping files the same way as in the java 
files.
-fred

        -----Original Message----- 
        From: Fred Jambukeswaran 
        Sent: Thu 9/18/2003 7:25 PM 
        To: [EMAIL PROTECTED] 
        Cc: 
        Subject: Trouble with xml mapping, using <include> and inheritiance
        
        

        I have a three level deep heirachy and I am setting up the mapping files to be 
able to marshall/unmarshall them without using descriptors.

        I can get the mapping to work properly if 

        1. i put all the class declarations into a single mapping file or

        2. if I include all the mapping sub files into one single master file

        master.xml. 

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

Reply via email to