Hello,
I recently started using Jibx and I found it fantastic.
I have an issue with a mapping and I would like to ask some advice.

XML
======
<SomeNode>
<Name>Luciano</Name>
<Address>Borgergade, 26</Address>
<City>Copenhagen</City>
<ChildrenInfo>
<Child1CPR>13893189</Child1CPR>
<Child2CPR>13493189</Child2CPR>
<Child3CPR>17493949</Child2CPR>
</ChildrenInfo>
</SomeNode>

Java Class
======
public class ExtendedApplicationVO {

private String name;
private String address;
private String city;
private CPR[] childrenCpr;

// ... getters and setters ...


}

public class CPR {
private String cpr;
public CPR(String cpr) throws ParseException {
this.cpr = cpr;
}
// NO SETTERS!!!
}


I don't basically know how to map the ChildrenInfo collection of CPR. I have
tried both using a custom marshaller/unmarshaller and the TypedArrayMapper
with no success.

Any tips?

Thanks
Luciano
--
View this message in context: 
http://www.nabble.com/-Newbie--Help-with-binding-t1848505.html#a5045703
Sent from the jibx-users forum at Nabble.com.


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to