I would like to know instead of the Hibernate validator @Min which is inclusive (equal or greater than) is there a way to express "strictly greater than" a number?
Thanks very much :)
If you work with Bean Validation 1.1 (part of Java EE 7) you may use @DecimalMin
instead which has an additional attribute, inclusive
, which controls whether "strictly greater than" or "greater than or equals to" semantics are used.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With