[bv-dev] MessageSource for ReportAsSingleViolation

Hardy Ferentschik hardy at hibernate.org
Sat Jan 7 11:38:47 EST 2012


Hi,

I think you talk about https://hibernate.onjira.com/browse/BVAL-261

--Hardy


On Jan 7, 2012, at 5:30 PM, Cemo wrote:

> Hi,
> 
> After having great comments and motivation from your comments, I would like to share another idea in before filing an issue.
> 
> Composing a new constrain based on other constraints are frequently used in our production systems. However sometimes I was desperately desiring an option to display message by violating constraint. It can be considered this option as complementary option for ordered constraints. Ordered constraints are discussed at another topic but for composite constraints It can be great to option select message source. Parent (composer) or child (composed) message source.  
> 
> @ReportAsSingleViolation(messageSource= COMPOSER) 
> 
> I believe that flexibility to select message to display is great. 




More information about the beanvalidation-dev mailing list