NPersistence Reference Guide
Assembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)
The validation mode to be used by the provider for the persistence
unit.
Namespace: NPersistenceAssembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
C# |
public enum ValidationMode
Members
Member | Value | Description |
---|---|---|
AUTO | 0 | 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.
|
CALLBACK | 1 | The persistence provider must perform the lifecycle event
validation. It is an error if there is no Bean Validation
provider present in the environment.
|
NONE | 2 | The persistence provider must not perform lifecycle event validation.
|