I want to do some domain validation. In my object I have one integer.
Now my question is: if I write
@Min(SEQ_MIN_VALUE)
@Max(SEQ_MAX_VALUE)
private Integer sequence;
and
@Size(min = 1, max = NAME_MAX_LENGTH)
private Integer sequence;
If it's an integer which one is proper for domain validation?
Can anybody explain me what is the difference between them?
Thanks.