title: How does Hibernate find the generic type of a collection in a @OneToMany mapping?
body: <p>Given a simple entity relationship:</p>
  
  <pre><code>@Entity
  public class Single {
  
    @OneToMany
    public Set&lt;Multiple&gt; multiples;
  }
  </code></pre>
  
  <p>How does Hibernate find out that the generic type of multiples is Multiple? This information is impossible to find with the standard Reflection API.</p>
  
  <p>I'm looking through the source code, but don't really know where to start.</p>