title: How to map relationship with multiple target entities
body: <p>I don't understand how to map bVersionId.</p>
  
  <pre class="lang-java prettyprint-override"><code>@Data
  @Table(name = "prefix_class_a")
  ClassA{
      //...
      private Long bVersionId;
      //...
  }
  </code></pre>
  
  <p>This tables already have ManyToOne relationship.</p>
  
  <pre class="lang-java prettyprint-override"><code>@Data
  @Table(name = "prefix_class_b")
  ClassB{
      //...
      @OneToMany(cascade = CascadeType.ALL, orphanRemoval = true, fetch = FetchType.LAZY, mappedBy = "classB")
      private Collection&lt;ClassBVersion&gt; versions = new ArrayList&lt;&gt;();
      //...
  }
  </code></pre>
  
  <pre class="lang-java prettyprint-override"><code>@Data
  @Table(name = "prefix_class_b_version")
  ClassBVersion{
      //...
      @ManyToOne(fetch = FetchType.LAZY)
      @JoinColumn(name = "prefix_class_b_id")
      private ClassB classB;
      //...
  }
  </code></pre>
  
  <p>what relation should be used? And how?</p>