Hi, I have this classes:
class Address { > @NotEmpty(message = "{address.notEmpy}") String body > } class Contact { > Address address > } class Person { > Contact contact > Address address > } Is there a way to obtain different messages when the "address.body" is null in both Person and Contact? Right now I've got: ConstraintViolationImpl{interpolatedMessage='may not be empty', > propertyPath=contact.address.body, rootBeanClass=class Person, > messageTemplate='{address.notEmpy}'} > ConstraintViolationImpl{interpolatedMessage='may not be empty', > propertyPath=address.body, rootBeanClass=class Person, > messageTemplate='{address.notEmpy}'} Thanks! Mihai _______________________________________________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev