Skip to main content

typesafeEnumClass dont work from binding file

1 reply [Last post]
horyna
Offline
Joined: 2006-11-29
Points: 0

I need to generate enum from simpleType with xs:long emuneration.

Its work when i configure it inline in xsd, but not from binding file! Why? What i do wrong? Necessary code in attached files





AttachmentSize
jaxb_common_bindings.txt564 bytes
commonTypes-v1.0.txt1.01 KB
pom_part.txt1.32 KB

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
horyna
Offline
Joined: 2006-11-29
Points: 0

+ new unexpected behavior!

When i define the typesafeEnumClass in binding file so its not generate the simple time for the binded xsd file, but its generate thw Enum in other xsd with reference this xsd.

Example:
common.xsd -> package.common.MyEnum
account.xsd -> package.account.SomeMeComplexType + package.account.MyEnum

I would like:
common.xsd -> package.common.MyEnum
account.xsd -> package.account.SomeMeComplexType + reference to package.common.MyEnum