All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.envers.RelationTargetNotFoundAction Maven / Gradle / Ivy

The newest version!
/*
 * SPDX-License-Identifier: Apache-2.0
 * Copyright Red Hat Inc. and Hibernate Authors
 */
package org.hibernate.envers;

/**
 * Defines the actions on how to handle {@code EntityNotFoundException} cases when a relation
 * between two entities (audited or not) cannot be found in the data store.
 *
 * @author Chris Cranford
 * @see org.hibernate.annotations.NotFoundAction
 */
public enum RelationTargetNotFoundAction {
	/**
	 * Specifies that exception handling should be based on the global system property:
	 * {@link org.hibernate.envers.configuration.EnversSettings#GLOBAL_RELATION_NOT_FOUND_LEGACY_FLAG}.
	 */
	DEFAULT,

	/**
	 * Specifies that exceptions should be thrown regardless of the global system property:
	 * {@link org.hibernate.envers.configuration.EnversSettings#GLOBAL_RELATION_NOT_FOUND_LEGACY_FLAG}.
	 */
	ERROR,

	/**
	 * Specifies that exceptions should be ignored regardless of the global system property:
	 * {@link org.hibernate.envers.configuration.EnversSettings#GLOBAL_RELATION_NOT_FOUND_LEGACY_FLAG}.
	 */
	IGNORE
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy