Top Description Fields Constructors Methods
jakarta.persistence

public final Enum ValidationMode

extends Enum<ValidationMode>
Class Inheritance

The validation mode to be used by the provider for the persistence unit.
Since
2.0

Field Summary

Modifier and TypeField and Description
public static final ValidationMode
AUTO

If a Bean Validation provider is present in the environment, the persistence provider must perform the automatic validation of entities.

public static final ValidationMode
CALLBACK

The persistence provider must perform the lifecycle event validation.

public static final ValidationMode
NONE

The persistence provider must not perform lifecycle event validation.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ValidationMode
public static ValidationMode[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

AUTOback to summary
public static final ValidationMode AUTO

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.

CALLBACKback to summary
public static final ValidationMode CALLBACK

The persistence provider must perform the lifecycle event validation. It is an error if there is no Bean Validation provider present in the environment.

NONEback to summary
public static final ValidationMode NONE

The persistence provider must not perform lifecycle event validation.

Constructor Detail

ValidationModeback to summary
private ValidationMode()

Method Detail

valueOfback to summary
public static ValidationMode valueOf(String name)
valuesback to summary
public static ValidationMode[] values()