xsd - How to define mapping in castor for type="java.lang.Objects"? -
public class emp { private java.lang.objects anyvalue; public void getanyvalue(){} // getter public void setanyvalue(){} // setter } <class name="emp"> <map-to xml="emp"/> <field name="value1" type="java.lang.string"> <bind-xml name=""value1" node="element"/> </field> <field name="value2" type="pkg.value2"> <bind-xml name=""value2" node="element"/> </field> </class>
xsd empinfo-> 1 ( 1 can used among these either value1 or value 2). how define 1 mapping in mapping.xml file structure emp can have value1 or can have value2 can used castor1.2 , can see in pojo class having object type how make work mapping file ?
Comments
Post a Comment