Hi,
it looks to me the validator is failing with the validation on nested hibernate objects. During debugging I saw the proxies of the embedded objects (some javassist proxy classes...) and the validator tries to validate the properties on the proxies instead of the proxied objects. Here's my object hierarchy...
Code:
public class Catalogue {
@Valid
private LocalizedDescription description_en;
@Valid
private LocalizedDescription description_de;
}
public class LocalizedDescription {
@NotEmpty
@Length(min = 5, max = 30)
private String name;
@NotNull
@Length(min = 0, max = 140)
private String description;
}
The validator complains the properties name and description are undefined although I can see them in the proxied objects as properly filled in.
Is this as intended ? Any workaround or "proper" way ? Help appreciated !
Regards Alex