I have
An Entity:
package org.ibp.soq;
public class MyEntity {
private String field1;
private String field2;
//..get
As you might have guessed this cannot be achieved using Spring Validation. Spring Validation implements Bean Validation(JSR 303/349) as opposed to Object validation. Unfortunately a collection is not a Java Bean. You have two options
myEntityValidator. validate(targetObject, errors)
.