phax / ph-jaxb-plugin

JAXB 4.x plugin that adds some commonly needed functionality
Apache License 2.0
4 stars 3 forks source link

Invalid generation in wrapped simpletypes #3

Open Gaba1978 opened 2 years ago

Gaba1978 commented 2 years ago

Hi, When I have a complexType that extends a simpleType, and the simpletype has a decimal restriction on it, then the generated class will have a @Digits annotation in the wrong place. Non-numeric fields should not have this annotation. Example pom.xml.txt test.xsd.txt : (I've attached source xsds) Generated files is: Correct: Amount.java: @Digits(integer = 1, fraction = 17) protected BigDecimal value;

Incorrect: Document.java: @Digits(integer = 1, fraction = 17) protected Amount amt;

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.