[hibernate-dev] Help to intoduce dynamic parameters into a message

Hardy Ferentschik hibernate at ferentschik.de
Fri Jun 4 08:43:48 EDT 2010


These kind of usage question should be asked on the "Search, Validator,  
Shards" Forum
https://forum.hibernate.org/viewforum.php?f=9

This mailing list is for Hibernate development related topics.

--Hardy




On Fri, 04 Jun 2010 14:16:38 +0200, Johann Jmml <jmmljo at yahoo.fr> wrote:

> Hi,
>
>
> I'm a newbie.
> When validating a class, how to use values of dynamic parameters into a  
> validation error message?
> I explain, I want to take into account parameters which will be included  
> into the text of the message referenced by EXCEPTION_ID id into a  
> resource file. What is the best mean to do please?
>
> 1) @FilenameUnicity(message = "EXCEPTION_ID",  
> (paramsToPutIntoTheMessage)???, groups = {
>     Default.class, Specific.class })
>  2) MessageInterpolator???
>
> Thanks a lot.
>
>
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev




More information about the hibernate-dev mailing list