[hibernate-dev] [Bean Validation] Constraints plural

Emmanuel Bernard emmanuel at hibernate.org
Mon Feb 23 05:30:51 EST 2009


I finally went for .List
@Max.List

On  Feb 22, 2009, at 07:18, Elias Ross wrote:

> List or Array or Many makes more sense than "Plural" which is really
> defined to mean "more than one" but I think in some cases you might
> just have a single element or none at all. For example, this would be
> valid I think:
>
> @Max.Array( {
>  @Max(30, groups=JoeSixPack.class),
> } )
>
> although I don't know why you'd use an Array if you had a single
> element but when you're coding things end up defined like this
> sometimes.
> _______________________________________________
> 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