Is it possible to map same nodes with different properties of a class.
Eg. in

<Address>
        <to>Joe Smith</to>
        <to>Recieving Dept.</to>
        <line1></line1>
        ...
</Address>


Can i have the first <to> mapped to say the porperty "addressName" of a
class( Address )
And the next <to> to say "attention" property of the class.

So it looks something like:
        <class name="PostalAddress">
                <map-to xml="Address"/>
                <field name="name" type="java.lang.String">
                        <bind-xml name="to" node="element"/>
                </field>
                <field name="attention" type="java.lang.String">
                        <bind-xml name="to" node="element"/>
                </field>
                ....
        </class>


TIA
Avinash



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

Reply via email to