Yes, make sense
http://opensource.atlassian.com/projects/hibernate/browse/BVAL-125

On  Feb 22, 2009, at 17:32, Alaa Mohsen wrote:

Hello Guys,
I was thinking about something. Why do we have the default value for min() in the Size constraint set to Integer.MIN_VALUE and not zero? I know that this won't make any difference at all for the validation framework, but I don't think that it's logical to say that there is a negative size for a String, Collection, Array or Map. Another thing is that my company is working on tag files for client side validations by reading the annotations, and having a minimum size of -2147483648 in the markup doesn't make any sense. As I have mentioned before, this won't make any difference in the bean validation framework, but I guess that it makes more sense.

Thanks & Best Regards,
Alaa Nassef
_______________________________________________
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev

_______________________________________________
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev

Reply via email to