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

Emmanuel Bernard emmanuel at hibernate.org
Mon Feb 23 04:47:09 EST 2009


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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev




More information about the hibernate-dev mailing list