agoncal-training-javaee6 icon indicating copy to clipboard operation
agoncal-training-javaee6 copied to clipboard

Change the Bean Validation message key

Open agoncal opened this issue 13 years ago • 0 comments

As per Bean Validation spec §3.1.1.1. message :+1:

"It is recommended to default message values to resource bundle keys to enable internationalization. It is also recommended to use the following convention: the resource bundle key should be the fully qualified class name of the constraint annotation concatenated to .message"

So instead of having title in ValidationMessages.properties I should have :

org.agoncal.training.javaee6.domain.Item.title.message

agoncal avatar Dec 29 '12 08:12 agoncal