I have the following class:
class Foo
{
@Valid
private Bar bar;
}
In Bar, I have:
class Bar
{
@NotEmpty
private String baz;
}
I want to validate the property bar.baz from foo. But when I try validateProperty() and pass the string bar.baz as the property name, I get an error that there's no such property. Is it not possible to validate child properties in this way?
extendsanywhere. Is this an oddity of hibernate?Baris contained withinFooin this case.