There is now support for "@Valid" in collections (Set, List, ...)?
For example:
Code:
@Valid
@OneToMany(mappedBy="owner")
public List<Animal> getAnimals() {
return animals;
}
public void setAnimals(List<Animal> animals) {
this.animals = animals;
}
When it persists never evaluated the property "List<Aminal> animals"
This only happens with collections.
In simple properties (not collections) goes perfect, for example:
Code:
@Valid
public Animal getAnimal() (
return animal;
)
public void setAnimal (Animal animal) (
this.animal = animal;
)
Any ideas?
Greetings