The background document states that the size limit is:
Uses the Groovy range to limit the size of a collection or number or string length.
When I put a size limit on an integer, I get a warning
The [prop] property of TheClass domain class is of type [java.lang.Integer] and does not support the [size] constraint. This restriction will not be verified during verification.
Is the document wrong?
I know that I can use a range, but as a rule, it would be easier to indicate the number of digits in the number and not the actual value (for example, a social security number should have 7 digits or whatever, and not make a range of 1,000,000 - 9,999,999 )
source
share