title: Hibernate. Property not found on type
body: <p>I have entity class Publication. It connected with entity class Teacher as ManyToMany. </p>
  
  <p>Here's part of Publication class</p>
  
  <pre><code>// create connectivity with table Teacher
  public Set&lt;Teacher&gt; teachers;
  
  @ManyToMany
  @JoinTable(name = "Bridge2",
             joinColumns = @JoinColumn(name = "PublicationId"),
             inverseJoinColumns = @JoinColumn(name = "TeacherId"))
  public Set&lt;Teacher&gt; getTeacher() {
      return teachers;
  }
  
  public void setTeacher(Set&lt;Teacher&gt; teachers) {
      this.teachers = teachers;
  }
  </code></pre>
  
  <p>I select publication from database and pass it to JSP page. At JSP page I try to view all teachers but always get exception <b>Property 'teachers' not found on type org.irs.entities.Publication.</b></p>
  
  <p>Here's part of JSP file</p>
  
  <pre><code>&lt;td&gt; &lt;!-- view all teachers --&gt;
      &lt;c:forEach var="t" items="${publication.teachers}"&gt;
          ${t.teacherFullName}&lt;br/&gt;
      &lt;/c:forEach&gt;
  &lt;/td&gt;
  </code></pre>
  
  <p>If anyone knows the reason of this problem, I'll be gratful for help.</p>