title: Finding the recently deleted entities using Hibernate envers
body: <p>So my problem is that I need to find all the recently deleted entities of a particular class, that is the entities which have been deleted since a particular timestamp. Specifically, I want to find entities deleted within the last hour.</p>
  
  <p>All my entities have a created and updated timestamp which I maintain correctly with a listener:</p>
  
  <pre><code>@NotNull
  @Column(name = "updated")
  @Type(type="org.joda.time.contrib.hibernate.PersistentDateTime")
  private DateTime updated;
  </code></pre>
  
  <p>I also use Envers and annotate my entities.</p>
  
  <p>So to guess, my query should start like this:</p>
  
  <pre><code>// Query for deleted bookings
  AuditReader reader = AuditReaderFactory.get(entityManager);
  AuditQuery query = reader.createQuery()
  .forRevisionsOfEntity(Booking.class, false, true)
  </code></pre>
  
  <p>but I don't know what to put here to find the deleted Booking's since a DateTime.</p>