[hibernate-issues] [Hibernate-JIRA] Commented: (HV-507) Specify the name of the resource file via a property

Hardy Ferentschik (JIRA) noreply at atlassian.com
Tue Dec 6 10:18:37 EST 2011


    [ http://opensource.atlassian.com/projects/hibernate/browse/HV-507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44529#comment-44529 ] 

Hardy Ferentschik commented on HV-507:
--------------------------------------

As mentioned on the thread. We already have a way to do this:

{code}
Validator validator =
   Validation.byProvider(HibernateValidator.class)
      .configure()
      .messageInterpolator(
         new ResourceBundleMessageInterpolator(
            new PlatformResourceBundleLocator( "my_bundle" )))
      .buildValidatorFactory()
      .getValidator();
{code}

And there is also BVAL-217 which addresses the issue from spec point of view. So far we don't have any specific properties we use within HV and I don't think this is a good enough usecase to start with it.

> Specify the name of the resource file via a property
> ----------------------------------------------------
>
>                 Key: HV-507
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-507
>             Project: Hibernate Validator
>          Issue Type: New Feature
>          Components: engine
>    Affects Versions: 4.2.0.Final
>            Reporter: Emmanuel Bernard
>            Priority: Minor
>
> See https://forum.hibernate.org/viewtopic.php?f=26&t=1011623&p=2447057#p2447057

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list