Annotation Interface RevisionEntity


@Retention(RUNTIME) @Target(TYPE) public @interface RevisionEntity
Marks an entity to be created whenever a new revision is generated. The revisions entity must have an integer-valued unique property (preferably the primary id) annotated with RevisionNumber and a long-valued property annotated with RevisionTimestamp. The DefaultRevisionEntity already has those two fields, so you may extend it, but you may also write your own revision entity from scratch.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The optional listener that will be used to fill in the custom revision entity.
  • Element Details

    • value

      Class<? extends RevisionListener> value
      The optional listener that will be used to fill in the custom revision entity. May also be specified using the org.hibernate.envers.revision_listener configuration property.
      Default:
      org.hibernate.envers.RevisionListener.class