|
Hibernate example source code file (AuditOverride.java)
The Hibernate AuditOverride.java source codepackage org.hibernate.envers; 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; import java.lang.annotation.Retention; import java.lang.annotation.Target; /** * The {@code AuditingOverride} annotation is used to override the auditing * behavior of a field (or property) inside an embedded component. * * @author Erik-Berndt Scheper * @see javax.persistence.Embedded * @see javax.persistence.Embeddable * @see javax.persistence.MappedSuperclass * @see javax.persistence.AssociationOverride * @see AuditJoinTable */ @Target({ TYPE, METHOD, FIELD }) @Retention(RUNTIME) public @interface AuditOverride { /** * @return <strong>Required Name of the field (or property) whose mapping * is being overridden. */ String name(); /** * @return Indicates if the field (or property) is audited; defaults to {@code true}. */ boolean isAudited() default true; /** * @return New {@link AuditJoinTable} used for this field (or property). Its value * is ignored if {@link #isAudited()} equals to {@code false}. */ AuditJoinTable auditJoinTable() default @AuditJoinTable; } Other Hibernate examples (source code examples)Here is a short list of links related to this Hibernate AuditOverride.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.