Help

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 http://emmanuelbernard.com/various/presentations/beanvalidation-bestpractices/beanvalidation-bestpractices.git 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

//hack

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.

Enjoy

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

E:\tmp\0\bv-bp\src\main\java\com\jboss\sample\bv\domain\constraints\CheckBlackListStatus.java:[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;
ReplyQuote
01. Oct 2010, 11:43 CET | Link

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

Post Comment