7 Replies Latest reply on Apr 30, 2009 5:07 AM by Adam Warski

    DefaultRevisionEntity, @RevisionNumber and strictly-increasi

    Den Orlov Newbie

      Hi Adam!

      I found that Envers make some assumption about @RevisionNumber that itself doesn't satisfy in DefaultRevisionEntity.

      @RevisionNumber comment states that

      Values of this property should form a strictly-increasing sequence of numbers.

      but DefaultRevisionEntity defines it as

      public class DefaultRevisionEntity {
       private int id;

      that in common case could be not increasing at all (id generator doesn't provide strictly-increasing sequence guaranties).

      So is it possible that for example I request last revision of entry, but this last revision doesn't correspond to last changes of that entry?