title: How to query RevisionEntity in hibernate envers
body: <p>I was trying to log additional user data with the revisions created by Envers. I was able to do that using RevisionEntity and RevisionListener but I'm not able to retrieve the data that is logged.
  I tried the following code</p>
  
  <pre><code>    AuditQuery auditQuery = AuditReaderFactory
              .get(factory.getCurrentSession()).createQuery()
              .forRevisionsOfEntity(Currency.class, false, false)
              .add(AuditEntity.id().eq("ENV_US"));
  
      List&lt;Object[]&gt; l = auditQuery.getResultList();
  </code></pre>
  
  <p>This returned a List
  In the object array first element is the Revision Second is of RevisionEntity and third is of RevisionType, but the values in RevisionEntity object are all null.</p>
  
  <p>Here is the pojo for RevisionEntity</p>
  
  <pre><code>@Entity
  @Table(name = "REVINFO")
  @RevisionEntity(RevListener.class)
  public class ExampleRevEntity {
  @Id
  @GeneratedValue
  @RevisionNumber
  @Column(name = "REV")
  private int rev;
  
  @RevisionTimestamp
  @Column(name = "REVTSTMP")
  private long revtstmp;
  
  @Column(name = "USERID")
  private String userId;
  
  public String getUserId() {
      return userId;
  }
  
  public void setUserId(String userId) {
      this.userId = userId;
  }
  
  }
  </code></pre>
  
  <p>Please let me know If I'm doing any thing wrong.</p>