I'm trying to map the following class with xml binding file (jaxb-moxy):
public class A{
private String name;
private B b;
.....
}
public class B{
private String surname;
}
In the binding file I have:
....
<java-type name="A" xml-accessor-type="NONE">
<java-attributes>
<xml-element java-attribute="b$surname" name="surname"/>
<xml-element java-attribute="name" name="name"/>
</java-attributes>
</java-type>
....
Unfortunately, the xml generated has always surname field empty (and I log this error message: Ignoring attribute [b$surname] on class [A] as no Property was generated for it).
Could you help me to undestand how to map member attributes?
Thanks in advance.