Annotation Type RevisionEntity
@Retention(RUNTIME) @Target(TYPE) public @interface RevisionEntityMarks 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
RevisionNumberand a long-valued property annotated with
DefaultRevisionEntityalready has those two fields, so you may extend it, but you may also write your own revision entity from scratch.