Uploaded image for project: 'Spring Data JPA'
  1. Spring Data JPA
  2. DATAJPA-116

AbstractAuditable should have an equivalent annotation similar to @Audited of Hibernate Envers

    Details

      Description

      When adding auditing capabilities my domain class is forced to extend from org.springframework.data.jpa.domain.AbstractAuditable

      Patient.java
      @Entity
      public class Patient extends AbstractAuditable<User, Long> {
      ...
      }
      

      However, with Hibernate Envers, I just need to add @Audited

      Patient.java
      @Audited
      @Entity
      public class Patient {
      ...
      }
      

      Wouldn't it be nicer if we have an equivalent annotation for AbstractAuditable? Maybe like:

      Patient.java
      @Auditable(User.class, Long.class)
      @Entity
      public class Patient {
      ...
      }
      

      Thanks

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                olivergierke Oliver Gierke
                Reporter:
                skram Mark Serrano
                Last updater:
                Trevor Marshall
              • Votes:
                5 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: