org.hibernate.envers.AuditOverrides Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-envers Show documentation
Show all versions of hibernate-envers Show documentation
Hibernate's entity version (audit/history) support
/*
* 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;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* The {@code AuditingOverrides} annotation is used to override the auditing
* behavior for one ore more fields (or properties) inside an embedded
* component.
*
* @author Erik-Berndt Scheper
* @see jakarta.persistence.Embedded
* @see jakarta.persistence.Embeddable
* @see jakarta.persistence.MappedSuperclass
* @see jakarta.persistence.AssociationOverride
* @see jakarta.persistence.AssociationOverrides
* @see AuditJoinTable
* @see AuditOverride
*/
@Target({TYPE, METHOD, FIELD})
@Retention(RUNTIME)
public @interface AuditOverrides {
/**
* An array of {@link AuditOverride} values, to define the new auditing
* behavior.
*/
AuditOverride[] value();
}