NPersistence Reference Guide
The validation mode to be used by the provider for the persistence unit.

Namespace: NPersistence
Assembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)

Syntax

   
 C# 
public enum ValidationMode

Members

MemberValueDescription
AUTO0
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.
CALLBACK1
The persistence provider must perform the lifecycle event validation. It is an error if there is no Bean Validation provider present in the environment.
NONE2
The persistence provider must not perform lifecycle event validation.

See Also