ExtVal: Validating an objects attributes if at least one these has a value

2010-07-01 Thread mynewsgroups
Hi at all, I have the following use case simplified with an object 'Address' including zip, city and so on using BeanValidation: public class Address { @NotNull(Create.class) @Size(min=3, max=10) private String zip; @NotNull @Size(min=3, max=50) private String city; ... } This

Re: ExtVal: Validating an objects attributes if at least one these has a value

2010-07-01 Thread Gerhard Petracek
hi tom, in this special case the usage of @SkipValidation wouldn't lead to a nice solution. in case of bv + extval: there is a new add-on [1] for bv based multi-field-validation. however, also with this new prototype you would need group-validation (for this special case) to bypass the