-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not work on attributes #1
Comments
Hi Michael, I just saw your message, sorry for the delay. I will check and come back to you. I'm a bit busy last days so be a patient. See you! |
Please, check the source code, more precisely the integration test, now you can find a external global binding in jaxb2-fixed-value/src/it/fixedvalue-it/src/main/resources/binding.xjb. I figured out that is possible to have fixed values for attributes using the basic xjc features, without any plugin, you only need to declare the element: <jaxb:globalBindings fixedAttributeAsConstantProperty="true" /> Check also the schema.xsd and the Product.java file generated, you can see the attribute with the desired fixed value now. Thanks to point out this missing feature, I will add a comment in the main page to help others. |
Hi Fabio, |
I have this in my code
to work around a bug in .NET. Unfortuantely, this default value is completely ignored. Can you make this work for attributes too?
The text was updated successfully, but these errors were encountered: