title: Invocation of init method failed; nested exception is org.hibernate.AnnotationException: mappedBy reference an unknown target entity property:
body: <p>a create relation ManyToMany beetwen my Subject table and Group table. But I have problem with "mappedBy</p>
  
  <p><strong>Subject class :</strong></p>
  
  <pre><code>@ManyToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL)
  @Fetch(value = FetchMode.SUBSELECT)
  @JoinTable(
      name = "ugroup_subject",
      joinColumns = @JoinColumn(
          name = "subject_id", referencedColumnName = "id"),
      inverseJoinColumns = @JoinColumn(
          name = "group_id", referencedColumnName = "id")
  
  )
      List&lt;Group&gt; groups;
  </code></pre>
  
  <p><strong>Group class :</strong></p>
  
  <pre><code> @ManyToMany(mappedBy = "group")
      private List&lt;Subject&gt; subjects;
  </code></pre>
  
  <p>And this is my error :</p>
  
  <pre><code>org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is org.hibernate.AnnotationException: mappedBy reference an unknown target entity property: com.example.tim.model.Subject.group in com.example.tim.model.Group.subjects
  </code></pre>
  
  <p>Where did I make a mistake?
  Thank you in advance for your help !</p>