JAXB inheritance in MOXY

I have two classes:\[code\]package a;class A { private <type> fieldOfClassA; // getters, and setters}package b;class B extends A{ private <type> fieldOfClassB; // getters, and setters}\[/code\]I want to marshal class B to an xml element and add the attribute fieldOfClassB, and fieldOfClassA from class A but it prints the following warning message during marshalling:\[code\]Ignoring attribute [fieldOfClassA] on class [b.B] as no Property was generated for it.\[/code\]Note that the two class is from two different packages and I can't change this object model.Thank you in advance!EDIT:I am using external binding files.
 
Back
Top