Hi, I want to map a field of a parent class to a field of its child-class, this can be done with the location attribute:
http://www.castor.org/xml-mapping.html#6.-Location-attribute The problem is that the child-xml-element is then created twice, once by the location-attrib-mapped field and once by the child field itself: class Bar string f0 string f1 ... class Foo string f2 Bar b Now i can map b in Foo like this: <field name="b.f0" > <bind-xml name="f0" node="element" location="b"/> </field> This will lead to: <Foo> <f2>...</f2> <b><f0>...</f0></b> <b><f0>...</f0><f1>...</f1></b> </Foo> But I need: <Foo> <f2>...</f2> <b><f0>...</f0><f1>...</f1></b> </Foo> Is this possible without mapping every field of Bar in Foo explicitly? Thank you --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

