At JavaOne this year, I gave a more advanced presentation than usual on how to use Bean Validation. A few folks have asked me to share it and there it is.

A bit of warning though, this is a presentation that is best seen live as I talk a lot on my slides and even more during the live demo. I am not the kind of person that reads its slides and the demo part is probably about 50% of the presentation so if you can see Hardy or me doing this presentation live, by all means go.

But in the mean time, here are the slides BeanValidationBestPractices-1.0.pdf[1]. I have also put the demo code on a git repository. Simply do

//retrieve the GIT repository
git clone bv-bp
cd bv-bp

//checkout the demo when starting
git checkout -b demo-start-branch demo-start-state

//checkout the demo when done
git checkout -b branch-demo-done demo-done-state


I've defined two tags:

  • demo-start-state which correspond to the demo when I start working on it on stage
  • demo-done-state which correspond to the demo when I am done and leave the stage

I have left a bunch of TODOs in the start state and described what I do in a txt file at the root, you should be able to follow.


01. Oct 2010, 08:28 CET | Link
Not Relevant
[INFO] Compiling 17 source files to E:\tmp\0\bv-bp\target\classes
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure

E:\tmp\0\bv-bp\src\main\java\com\jboss\sample\bv\domain\constraints\[38,7] static import decla
rations are not supported in -source 1.3
(use -source 5 or higher to enable static import declarations)
import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
01. Oct 2010, 11:43 CET | Link

Thanks for spotting the issue. I've pushed a change to the Git repo with the fix.

10. Jun 2014, 11:31 CET | Link

I also think that artistic entrepreneurs like me are not often recognized or understood.houses for sale north palm beach So, it’s very important to me especially coming from a grassroots and community-based background that I was recognized, but it was also something I never expected would happen

Post Comment