I have several processes in which the bean properties must have different values. Example:
@Min( value=0, groups=ProcessA.class ) @Min( value=20, groups=ProcessB.class ) private int temperature;
Unfortunately, bean JSR 303 validation did not set @Repeatable to javax.validation.constraints.Min, so this approach does not work. I found "Min.List", but without any document on how to use it. Instead, an Oracle white paper claims that http://docs.oracle.com/javaee/7/api/javax/validation/constraints/class-use/Min.List.html
Using javax.validation.constraints.Min.List
So at the moment it looks like a specification error?!?
The syntax for Min.List , as for any other annotation that contains an array of annotations as one of its attributes,
Min.List
@Min.List({ @Min(value = 0, groups = ProcessA.class), @Min(value = 20, groups = ProcessB.class) })
Source: https://habr.com/ru/post/984819/More articles:jQuery ajax https calls the ERR_INSECURE_RESPONSE command - javascriptHow do you use COUNT (*) with find ('list') in CakePHP 3? - phpUse RAW Eloquent Queries with Slim PHP - phpView a view from a database in MVC 6 - asp.net-mvcmultiple tar files (source files) in rpm.spec file - linuxMVC6 Downloading a razor from a database - asp.netHow to Convert Swift Dictionary to NSDictionary - iosCreating a JSON object in Swift - jsonPHPUnit not working with Laravel 5 - phpHow to test io.writer in golang? - unit-testingAll Articles