agoncal-training-javaee6
agoncal-training-javaee6 copied to clipboard
Change the Bean Validation message key
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