title: Hibernate Validator - Setting a default value after entity fails validation
body: <p>I want to validate the data in my EclipseLink entities before inserting them into the database using Hibernate Validator.</p>
  
  <p>If the validation fails then I want to set default values on those entities.  Then I want to insert the data into the database and flag those entities as having failed validation with the relevant error messages.</p>
  
  <p>Is the best way to do this to use the validator's isValid() method?</p>
  
  <p>I am new to Hibernate Validator, googled and search stackoverflow but couldn't find a question similar to mine.  </p>