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

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

There is a newer version: 7.0.0.Beta2
Show newest version
/*
 * Hibernate, Relational Persistence for Idiomatic Java
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later.
 * See the lgpl.txt file in the root directory or .
 */
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 - 2024 Weber Informatics LLC | Privacy Policy