[hibernate-dev] [BVAL-RI] Regarding @Size

Alaa Mohsen alaa.mohsen at egyptdc.com
Sun Feb 22 11:32:53 EST 2009

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-dev/attachments/20090222/a827a5f4/attachment.html 

More information about the hibernate-dev mailing list