Help

Time to update your dependencies or to hit the download site. Hibernate Validator 4.2.0.Final is released. All artifacts are either available via the JBoss Maven Repository or SourceForge. Links to the latest documentation can be found on the Validator homepage.

We have been blogging about the different new features and major changes during the interim releases, so let me just remind you. The most important new features are:

  • method level validation
  • boolean composition for composed constraints via @ConstraintComposition
  • ValueFormatterMessageInterpolator
  • GroupSequenceProvider annotation for the dynamic definition of the default group sequence

You can find more information about these features in the release blogs for Hibernate Validator 4.2.0 Beta1 and Hibernate Validator 4.2.0 Beta2.

The feature which underwent most changes during the development of Hibernate Validator 4.2.0 was the programmatic configuration API. In order to add programmatic configuration for method level validation and group sequence providers we had to go through several iterations. The final result is described in Hibernate Validator 4.2.0 CR1. We are sorry if you had to change your mappings several times, but we believe the outcome is worth it :-)

Even though we did not plan to add any new features after CR1, we introduced - thanks to a last minute contribution - a new constraint annotation - @SafeHtml. This constraint allows to check whether a given character sequence contains potentially malicious html code. Check the online docs for more information.

It is also important to know that together with Hibernate Validator 4.2.0.Final a new version of the Bean Validation TCK was released (1.0.5.GA). You find the latest documentation of the TCK here. The TCK contained wrong tests related to the Node.Path API (BVTCK-12) and it also checked wrongly for a ValidationException in case a constraint is placed on a non getter method (BVTCK-14).

You can find more information on how to upgrade Hibernate Validator on the Hibernate Validator Migration Guide.

The full change log for this release is available here. Feedback is welcome via the Validator Forum and the Jira issue tracker.

Last, but not least, this release would not have been possible without the help from the community. Thanks in particular to Dag, Frederico, George, Gunnar and Kevin!

Enjoy!

5 comments:
 
20. Jun 2011, 19:54 CET | Link

Awesome :) Congratulations.

ReplyQuote
 
21. Jun 2014, 16:09 CET | Link

Todays real estate market may existing some special and seeking problems. Financing for starters, especially for traders is very restricted. Real estate and also the economic climate are experiencing the biggest recession considering that the Great depression. todays market For example Business owners of huge UK government agencies are now pondering the unthinkable in response for this period of spending price range austerity business uk

19. Jul 2014, 09:07 CET | Link

After conducting my own investigative Girlfriend Activation System review, every guy who has ever been confused, nervous, or frustrated around women he likes will benefit from GFAS, but it's my opinion that the program is best suited for guys who are looking for a long-term relationship with just one special girl.christian h. girlfriend activation system review

 
20. Jul 2014, 06:55 CET | Link
Ben

Very nice and useful information. Why not write a book about this particular subject. For today’s economic variation and be short of of opportunities, it actually will be a very hot topic. Thanks a lot...Learn More on Venus Factor

 
20. Jul 2014, 06:57 CET | Link
Carl

Very nice and useful information. Why not write a book about this particular subject. For today’s economic variation and be short of of opportunities, it actually will be a very hot topic. Thanks a lot. Learn More on Total Wellness Cleanse

Post Comment