title: one to many mapping to a property of superclass
body: <p>I have a superclass <code>Questions</code> and its subclass <code>MultipleChoiceQuestions</code></p>
  
  <p>Superclass has a field <code>activity</code></p>
  
  <p>I want to create a <code>Set&lt;MultipleChoiceQuestions&gt;</code> and use <code>OneToMany</code> annotation using <code>mappedBy = "activity"</code></p>
  
  <p>e.g.</p>
  
  <pre><code>@OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL, mappedBy = "activity" )
  private Set&lt;NQIMultipleChoiceQuestions&gt; mcqQuestions = new HashSet&lt;NQIMultipleChoiceQuestions&gt;();
  </code></pre>
  
  <p>I am getting this error:</p>
  
  <pre><code>org.hibernate.AnnotationException: mappedBy reference an unknown target entity property 
  </code></pre>
  
  <p>However, it works fine if I create a set of superclass entities,</p>
  
  <p>e.g.</p>
  
  <pre><code>@OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL, mappedBy = "activity")
  private Set&lt;NQIQuestions&gt; questions = new HashSet&lt;NQIQuestions&gt;();
  </code></pre>
  
  <p>Is there a way to map to property of superclass?</p>