Envers - add new element to oneToMany collection in EntityListener @PreUpdate
<p>We have the following entity hierarchy and a EntityListener</p>

<pre><code>@Entity
@EntityListeners(value = DummyListener.class)
@Audited
public class A {
@OneToMany(cascade = CascadeType.ALL, mappedBy = "a", fetch = FetchType.LAZY, orphanRemoval = true)
  @Fetch(FetchMode.SELECT)
  private Set&lt;B&gt; bs = new LinkedHashSet&lt;B&gt;(0);
}

@Entity
@Audited
public class B {
  @ManyToOne(fetch = FetchType.EAGER, cascade = { CascadeType.MERGE, CascadeType.PERSIST })
  @JoinColumn(name = "a_id", nullable = false)
  private A a;
}

public class DummyListener {
  @PreUpdate
  public void beforeUpdate(A entity) {
    entity.set...(...);

    ...

    B old = entity.getBs().iterator().next();
    old.set...(...);

    ...

    B b = new B();
    b.setA(entity);

    entity.getBs().add(b);
    ...
  }
</code></pre>

<p>}</p>

<p>In the entity listener we would like to add new B entity to the A entity collection. But after saving A, the envers didn't create audit record for new B instance in B audit table.
Every other changes has audit records except new B instance.</p>

<p>What do we wrong? It is possible to create new instance of B in this way?</p>