Hi All:
I have a question on the Data mapping. What Iam trying to accomplish
it to map java objects belonging to 2 different classes as attributes
to a common xml element. Here is a sample class and the output xml I
would need. When i try creating the mapping file I get to different
Customer elements.
Class A {
private int item;
private int order;
public int getItem(){
return item;
}
public int getOrder(){
return order;
}
}
Class B{
private String sales;
private int count;
public String getSales(){
return sales;
}
public int getCount(){
return count;
}
}
The output xml should be
<PurchaseOrder>
<Customer Item="1" Order=2" Sales="Test" count="2"/>
</PurchaseOrder>
What I get is
<PurchaseOrder>
<Customer Item="1" Order=2"/>
<Customer Sales="Test" count="2"/>
</PurchaseOrder>
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user