-
Notifications
You must be signed in to change notification settings - Fork 47
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
minInclusive on a type xs:gYearMonth #8
Comments
I think the way of the custom annotation is inevitable as I stumbled upon another problem with xs:choice: <xs:complexType name="DrinkType">
<xs:sequence>
<xs:choice>
<xs:element ref="Tea"/>
<xs:element ref="Coffee"/>
</xs:choice>
</xs:sequence>
</xs:complexType> which generates: public class DrinkType {
@NotNull Tea tea;
@NotNull Coffee coffee;
} I think something like this would be better: @Choice({"tea", "coffee"})
public class DrinkType {
Tea tea;
Coffee coffee;
} Xavier |
Date is fixed in 0.5-SNAPSHOT |
Fixing the choice will be very hard. |
so @NotNull at choices is fixed. |
Do you see any solution on the @Choice-issue? Btw, I think this issue should have been split into two issues. |
Well I do not have solution, but I think it should be possible. I have even seen some ugly way how to find out what is defined as choice.... And you are right, I will split it. |
Hi,
I have a schema with the following type:
this generates an annotation
@DecimalMin("1911-01")
which will throw aNumberFormatException
because 1911-01 cannot be converted to aBigDecimal
value although "1911-01" is a legal minInclusive value forxs:gYearMonth
(see http://books.xmlschemata.org/relaxng/ch19-77135.html).What would be the solution?
@DecimalMin
annotation when the value is not aBigDecimal
?Thanks,
Xavier
The text was updated successfully, but these errors were encountered: