Just try adding @valid
to collection. it would be working as per reference hibernate
@Getter
@Setter
@Valid
@NotNull(groups = { Existing.class })
private List<LocationDto> locations;
Just try adding @valid
to collection. it would be working as per reference hibernate
@Getter
@Setter
@Valid
@NotNull(groups = { Existing.class })
private List<LocationDto> locations;