I'm trying to use a feature in bean-validation that I already used in the past, but I don't rembember how and i can't find any documentation.
import org.hibernate.validator.constraints.NotBlank;
public class User {
protected String id;
@NotBlank(message = "Name is mandatory for user {id}")
protected String name;
public String getId() {
return id;
}
}
In this example, {id}
is not remplaced by instance id.
Is there any way to use any current bean property in message template ?
Regards.