Hi, I believe there's no way to use @DecimalMin constraint to specify validation rule on decimal field where the specified min value is actually excluded. What I mean is a constraint like this:
Code:
@DecimalMin(value = "0.0", inclusive = false)
private BigDecimal margin;
meaning margin must be positive non-zero value.
Of course, one could define custom constraint and it's implementation, but I think this is quite common case and @DecimalMin/@DecimalMax should be extended to support this. Any thoughts?