title: collection was not processed by flush() exception In JPA
body: <p>I have the Entities as follows;</p>
  
  <pre><code>Claimant:
  
  @OneToMany(mappedBy = "payTo", cascade = CascadeType.ALL, fetch = FetchType.LAZY)
      @NotAudited
      private Set&lt;Payment&gt; payments = new HashSet&lt;Payment&gt;();
  
  Payment:
   @OneToMany(mappedBy = "rofOf", cascade = CascadeType.ALL, fetch = FetchType.LAZY)
      @Audited(targetAuditMode = RelationTargetAuditMode.NOT_AUDITED)
      private Set&lt;Payment&gt; returnOfFundings = new HashSet&lt;Payment&gt;();    
  </code></pre>
  
  <p>When doing claimant.merge() </p>
  
  <p>getting the following exception "<strong>collection [com.bfds.saec.domain.Payment.returnOfFundings] was not processed by flush()</strong>"</p>
  
  <p>for the above one solution i found that just reload the Claimant with joining with Payment before merge.</p>
  
  <p>But Please let me know,Is there any other way is there to solve the above problem as i don't want to reload the Claimant with payment.</p>
  
  <p>What may be the root-cause for the problem ?? Is there any problem the relation I have defined there??</p>