When using Apache XML Beans to generate types from xsd: enumeration types, XMLBeans generates custom classes that are not Java 5 enums, but some kind of special class to represent the enumeration.
This may be because XMLBeans is older than Java 5 and there were no enumerations at that time, or you still want to maintain compatibility with Java 1.4. However, I would like to get the “real” enumeration types, so my question is: is there a way to generate Java 5 enumerations with Apache XML Beans?
( Jaxb does this as I want, but I'm not sure if I want to remove XMLBeans and introduce Jaxb just for that in detail.)
source
share