4 Replies Latest reply on Mar 27, 2010 11:18 AM by hernanbolido

    Custom RevisionInfoGenerator

    hernanbolido

      Hi!
      I need to use an assigned id on my revision entity and set the timestamp to the revision without calling System.currentTimeMillis() (as DefaultRevisionInfoGeneratos does). I can do this inside my revision listener, but it would be better if I give envers my own revisionInfoGenerator.

       

      I think about adding a new value to RevisionEntity annotation in order to provide a custom revisionInfoGenerator. Using the same idea that is used to give a custom revisionListener. So, in RevisionInfoConfiguration.configure() the custom revision info generator class could be read and instanciated...

       

      Adam, what do you think about?

       

      Thanks. Hernán.