title: Hibernate Envers - custom RevisionEntity - how to get record
body: <p>I have written my custom RevisionEntity class to store additional data (for example username), like below:</p>
  
  <pre><code>@Entity
  @RevisionEntity(AuditListener.class)
  @Table(name = "REVINFO", schema = "history")
  @AttributeOverrides({ 
          @AttributeOverride(name = "timestamp", column = @Column(name = "REVTSTMP")),
          @AttributeOverride(name = "id", column = @Column(name = "REV")) })
  public class AuditEntity extends DefaultRevisionEntity {
  
      private static final long serialVersionUID = -6578236495291540666L;
  
      @Column(name = "USER_ID", nullable = false)
      private Long userId;
  
      @Column(name = "USER_NAME")
      private String username;
  
      public Long getUserId() {
          return userId;
      }
  
      public void setUserId(Long userId) {
          this.userId = userId;
      }
  
      public String getUsername() {
          return username;
      }
  
      public void setUsername(String username) {
          this.username = username;
      }
  }
  </code></pre>
  
  <p>I can see that all rows in database are correctly stored, REVINFO table contains also username.</p>
  
  <p>I would like to query database to get detailed information from my custom RevisionEntity, like username. 
  How can I do it? Is there any supported API to get it?</p>