I have the following xml. I want to create a Trade class with a list of row objects in it, however it seems like the only way that would work would be if there was some kind of "rows" wrapper object around my list in the xml. Which there isn't. I just get no String-argument constructor/factory method to deserialize from String value ('xyz')
@Data
public class Trade{
String attr1;
Row[] row //same error if its a list
@Data
public class Row{
String blah1,blah2;
}
<Trade attr1=x, attr2=y>
<row>
<blah1>xyz</blah1>
<blah2>xyz</blah2>
</<row>
<row>
<blah1>xyz</blah1>
<blah2>xyz</blah2>
</row>
</Trade>