We have a main base object that contains numerous member variables that are
objects.
In one case we have an multiple member variables that are of the same object
type.
Our data is coming in from an XML file.

When I try to set up the mapping file for this. I get an error that it is
already defined.

How can I set my mapping file to do this ..... I've tried a couple different
ways,  but none of them work or allow me to map multiple variables to a
single object type. This seems like unlikely functionality.
What Am I missing?


Class   WebSite
        ourURLClass externalURL;
        ourURLClass internalURL;
        ArrayList otherLinks;   // a collection for ourURLClass

}


My XML comes in like this .....

<website>
        <externalURL>
                <name>foo</name>
                <id>33333</id>
                <protocol>http</protocol>
        </externalURL>
        <internalURL>
                <name>bar</name>
                <id>2222</id>
                <protocol>http</protocol>
        </internalURL>
        <otherLinks>
                <link>
                        <name>mybar</name>
                        <id>1111</id>
                        <protocol>http</protocol>
                </link>
                <link>
                        <name>yourbar</name>
                        <id>4444</id>
                        <protocol>http</protocol>
                </link>
        </otherLinks>
</class>

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

Reply via email to