Hi, This may be a really simple question - im pretty new to this......
I have 2 classes mapping to
<user><moneytotable /></user>
<user><moneyfromtable /></user>
My mappings like that this:
<class name="to.request.PokerCashMoneyToTableRequestTO">
<map-to xml="moneytotable"/>
</class>
<class name="to.request.PokerCashLeaveTableRequestTO">
<map-to xml="moneyfromtable"/>
</class>
I get an error: payment.xml.parser.XMLParseException:
org.xml.sax.SAXException: The class for the root element 'user' could not be
found.
However, if i put map-to xml="user" for both of them, then it loads wrong
class for the xml.
I'd like to specify an XPath statement in the <map-to xml> element or
something similar.
Can i do this?
--
View this message in context:
http://www.nabble.com/mapping-2-classes-to-different-sub-element-tp16804683p16804683.html
Sent from the Castor - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email