title: JPA Entity Validation
body: <p>Ok, I'm trying to setup an application in a Java EE Container. I use JPA for persistence and I also use the <code>javax.validation.constraints.*</code> constraints. By default the container validate the entities during the <code>@PrePersist</code> and <code>@PreUpdate</code> lifecycle events and it's good for me, but how do I handle the <code>ConstraintViolationException</code>? </p>
  
  <p>I can't find any docs on it, any suggestion is welcomed.</p>