Let's have some discussion on the TomEE side how we want to handle this 
regression:

 - https://issues.apache.org/jira/projects/BVAL/issues/BVAL-175

Short version if you're not motivated to click the link is the significant 
performance improvements introduced in BVal last month cause a regression in 
this example:

 - 
https://github.com/apache/tomee/tree/master/examples/bean-validation-design-by-contract

Read the background in the JIRA, but basically there are at least three options:

  1. TomEE can add the checks through a CDI extension quite easily,
  2. BVal could get a toggle switched off by default
  3. We can just say this is not a feature.

I'm personally fine with either of the three.  I'm not sure what Hibernate does 
and if they have the same unofficial feature.

One consideration is that the example in question is 8 years old and was the 
only bval example on the website for most that time.


-- 
David Blevins
http://twitter.com/dblevins
http://www.tomitribe.com

Reply via email to