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.txttest.xsd.txt
:
(I've attached source xsds)
Generated files is:
Correct: Amount.java:
@Digits(integer = 1, fraction = 17)
protected BigDecimal value;
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.
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;