org.hibernate.envers
Annotation Type Audited


@Retention(value=RUNTIME)
@Target(value={TYPE,METHOD,FIELD})
public @interface Audited

When applied to a class, indicates that all of its properties should be audited. When applied to a field, indicates that this field should be audited.

Author:
Adam Warski (adam at warski dot org), Tomasz Bech

Optional Element Summary
 ModificationStore modStore
           
 RelationTargetAuditMode targetAuditMode
           
 

modStore

public abstract ModificationStore modStore
Default:
org.hibernate.envers.ModificationStore.FULL

targetAuditMode

public abstract RelationTargetAuditMode targetAuditMode
Returns:
Specifies if the entity that is the target of the relation should be audited or not. If not, then when reading a historic version an audited entity, the realtion will always point to the "current" entity. This is useful for dictionary-like entities, which don't change and don't need to be audited.
Default:
org.hibernate.envers.RelationTargetAuditMode.AUDITED


Copyright © 2001-2010 Red Hat, Inc. All Rights Reserved.