For the following:
<xs:annotation>
<xs:appinfo>
<jxb:globalBindings>
<jxb:javaType name="foo.bar.MyEnum" xmlType="myEnum" parseMethod="foo.bar.MyEnum.convertToEnum" printMethod="foo.bar.MyEnum.convertToString"/>
</jxb:globalBindings>
</xs:appinfo>
</xs:annotation>
XJC generates
public class Adapter1
extends XmlAdapter<String, MyEnum>
{
public MyEnum unmarshal(String value) {
return (foo.bar.MyEnum.convertToEnum(value));
}
public String marshal(MyEnum value) {
return (foo.bar.MyEnum.convertToString(value));
}
}
but it does not annotate it with @Generated even though the -mark-generated option is given.