[hibernate-dev] [Bean Validation] Constraints plural

Hardy Ferentschik hibernate at ferentschik.de
Thu Feb 19 04:22:54 EST 2009


On Wed, 18 Feb 2009 16:35:30 +0100, Emmanuel Bernard  
<emmanuel at hibernate.org> wrote:

> @Max.Plural( {
>     @Max(30, groups=JoeSixPack.class),
>     @Max(100, groups=PowerUser.class)
> } )

+1 for this approach from me as well. Instead of Plural we could also  
consider Many or Multiple.

--Hardy





More information about the hibernate-dev mailing list