Hi Chris,
Christopher.Mathrusse@... wrote at
Mittwoch, 14. Oktober 2009 21:28:
> Do I need to use the converter directly or is there a way that I can
> configure XStream to use this Converter when the fromXML() method is
> invoked?
You have to register it for your types:
xstream.registerConverter(new JavaBeanConverter(xstream.getMapper()) {
boolean canConvert(Class type) {
return type == YourClassType.class || (<type is JPA manged bean>);
}
})
- Jörg
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email