Top Fields
org.hibernate.cfg

public Interface ValidationSettings

Known Direct Subinterfaces
org.hibernate.cfg.AvailableSettings

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
public static final String
CHECK_NULLABILITY

Enable nullability checking, raises an exception if an attribute marked as not null is null at runtime.

public static final String
JAKARTA_PERSIST_VALIDATION_GROUP

Used to coordinate with bean validators.

public static final String
JAKARTA_REMOVE_VALIDATION_GROUP

Used to coordinate with bean validators.

public static final String
JAKARTA_UPDATE_VALIDATION_GROUP

Used to coordinate with bean validators.

public static final String
public static final String
JAKARTA_VALIDATION_MODE

Indicates which form of automatic validation is in effect as per the rules defined in JPA 2 section 3.6.1.1.

public static final String
public static final String
public static final String
public static final String
public static final String

Field Detail

CHECK_NULLABILITYback to summary
public static final String CHECK_NULLABILITY

Enable nullability checking, raises an exception if an attribute marked as not null is null at runtime.

Defaults to disabled if Bean Validation is present in the classpath and annotations are used, or enabled otherwise.

See Also
org.hibernate.boot.SessionFactoryBuilder#applyNullabilityChecking(boolean)
JAKARTA_PERSIST_VALIDATION_GROUPback to summary
public static final String JAKARTA_PERSIST_VALIDATION_GROUP

Used to coordinate with bean validators.

See JPA 2 section 8.2.1.9

Annotations
@SuppressWarnings:unused
JAKARTA_REMOVE_VALIDATION_GROUPback to summary
public static final String JAKARTA_REMOVE_VALIDATION_GROUP

Used to coordinate with bean validators.

See JPA 2 section 8.2.1.9

Annotations
@SuppressWarnings:unused
JAKARTA_UPDATE_VALIDATION_GROUPback to summary
public static final String JAKARTA_UPDATE_VALIDATION_GROUP

Used to coordinate with bean validators.

See JPA 2 section 8.2.1.9

Annotations
@SuppressWarnings:unused
JAKARTA_VALIDATION_FACTORYback to summary
public static final String JAKARTA_VALIDATION_FACTORY

Used to pass along any discovered jakarta.validation.ValidatorFactory.

See Also
org.hibernate.boot.SessionFactoryBuilder#applyValidatorFactory(Object)
JAKARTA_VALIDATION_MODEback to summary
public static final String JAKARTA_VALIDATION_MODE

Indicates which form of automatic validation is in effect as per the rules defined in JPA 2 section 3.6.1.1.

See JPA 2 sections 9.4.3 and 8.2.1.8

See Also
jakarta.persistence.ValidationMode
JPA_PERSIST_VALIDATION_GROUPback to summary
public static final String JPA_PERSIST_VALIDATION_GROUP

Deprecated

Use JAKARTA_PERSIST_VALIDATION_GROUP instead

Annotations
@Deprecated
JPA_REMOVE_VALIDATION_GROUPback to summary
public static final String JPA_REMOVE_VALIDATION_GROUP

Deprecated

Use JAKARTA_REMOVE_VALIDATION_GROUP instead

Annotations
@Deprecated
JPA_UPDATE_VALIDATION_GROUPback to summary
public static final String JPA_UPDATE_VALIDATION_GROUP

Deprecated

Use JAKARTA_UPDATE_VALIDATION_GROUP instead

Annotations
@Deprecated
JPA_VALIDATION_FACTORYback to summary
public static final String JPA_VALIDATION_FACTORY

Deprecated

Use JAKARTA_VALIDATION_FACTORY instead

Annotations
@Deprecated
@SuppressWarnings:DeprecatedIsStillUsed
JPA_VALIDATION_MODEback to summary
public static final String JPA_VALIDATION_MODE

Deprecated

Use JAKARTA_VALIDATION_MODE instead

Annotations
@Deprecated
@SuppressWarnings:DeprecatedIsStillUsed