O'Reilly logo
  • Gangadhara Melukote thinks this is interesting:

  • validation-mode element in the persistence.xml file. This element may be set to one of three possible values.
  • AUTO: Turn on validation when a validation provider is present on the classpath (default).
  • CALLBACK: Turn on validation and throw an error if no validation provider is available.
  • NONE: Turn off validation.
  • javax.persistence.validation.mode persistence property. This property may be specified in the Map passed to the


    Cover of Pro JPA 2, Second Edition


    Controlling validation at global level.