It surprises me that you get a sequence of strings. Can you post the
resulting XML schema?
Generating a schema from
class Foo extends ArrayList<String> { int someValue;...}]
produces what I'd expect: one int element, and nothing else.
-W
On 6 June 2011 14:35, David Muņoz <david_at_gul.es> wrote:
> Hi friends,
>
> Suppose this class:
>
> class Thing implements List<String> {
>
> private int someValue;
> // getter and setter
>
> // methods from List<String>
> }
>
> When generating the schema, JAXB focuses on the List<> interface, so
> the schema generated corresponds to a sequence of Strings, forgetting
> everything about the "someValue" property.
>
> Does anybody know how I can handle this?
>
> Thanks
>