Skip to content

Change the Bean Validation message key #32

@agoncal

Description

@agoncal

As per Bean Validation spec §3.1.1.1. message 👍

"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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions