javax.persistence.ValidationMode Maven / Gradle / Ivy
// $Id: ValidationMode.java 17752 2009-10-15 01:19:21Z [email protected] $
// EJB3 Specification Copyright 2004-2009 Sun Microsystems, Inc.
package javax.persistence;
/**
* The validation mode to be used by the provider for the persistence
* unit.
*
* @since Java Persistence 2.0
*/
public enum ValidationMode {
/**
* If a Bean Validation provider is present in the environment,
* the persistence provider must perform the automatic validation
* of entities. If no Bean Validation provider is present in the
* environment, no lifecycle event validation takes place.
* This is the default behavior.
*/
AUTO,
/**
* The persistence provider must perform the lifecycle event
* validation. It is an error if there is no Bean Validation
* provider present in the environment.
*/
CALLBACK,
/**
* The persistence provider must not perform lifecycle event validation.
*/
NONE
}