title: JPQL ManyToMany Query issue (join Class)
body: <p>I have table on mysql generated by ManyToMany association.
  but when i run this query</p>
  
  <pre><code>select e from Employe e join e.listeRole c inner join c.Role r where r.IdRole = 1
  </code></pre>
  
  <p>i get this error</p>
  
  <blockquote>
    <p>13:11:51,959 ERROR [org.jboss.as.ejb3.tx.CMTTxInterceptor] (http-localhost-127.0.0.1-8080-6) javax.ejb.EJBTransactionRolledbackException: org.hibernate.QueryException: could not resolve property: listEmploye of: metier.entities.Employe [select e from metier.entities.Employe e join e.listEmploye c inner join c.Role r where r.IdRole = 1]
    13:11:51,960 ERROR [org.jboss.ejb3.invocation] (http-localhost-127.0.0.1-8080-6) JBAS014134: EJB Invocation failed on component Utilisateur for method public abstract java.util.List metier.sess.IUtilisateurLocal.RoleEmploye(): javax.ejb.EJBTransactionRolledbackException: org.hibernate.QueryException: could not resolve property: listEmploye of: metier.entities.Employe [select e from metier.entities.Employe e join e.listEmploye c inner join c.Role r where r.IdRole = 1]</p>
  </blockquote>
  
  <p>my classes are</p>
  
  <pre><code> @Entity
   public class Role {
  
  @Id
  @GeneratedValue(strategy=GenerationType.IDENTITY)
  private Integer IdRole;
  private String Intitule;
  
  @ManyToMany(fetch=FetchType.EAGER,mappedBy="listeRole")
  private List&lt;Employe&gt; listEmploye=new ArrayList&lt;Employe&gt;();
  
  public Integer getIdRole() {
      return IdRole;
  }
  
  public void setIdRole(Integer idRole) {
      IdRole = idRole;
  }
  
  public String getIntitule() {
      return Intitule;
  }
  
  public void setIntitule(String intitule) {
      Intitule = intitule;
  }
  
  public List&lt;Employe&gt; getListEmploye() {
      return listEmploye;
  }
  
  public void setListEmploye(List&lt;Employe&gt; listEmploye) {
      this.listEmploye = listEmploye;
  }
  
  public Role(String intitule) {
      super();
      Intitule = intitule;
  }
  
  
  public Role() {
      super();
      // TODO Auto-generated constructor stub
  }
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>@Entity
  @DiscriminatorValue(value="employe")
  public class Employe extends Utilisateur{
  private String TypeEmploye;
  private Integer authentification;
  private Date logindate;
  private Date logoutDate;    
  //Employe class
  @ManyToMany(fetch=FetchType.EAGER)
  private List&lt;Role&gt; listeRole=new ArrayList&lt;Role&gt;();
  public String getTypeEmploye() {
      return TypeEmploye;
  }
  public void setTypeEmploye(String typeEmploye) {
      TypeEmploye = typeEmploye;
  }
  public Integer getAuthentification() {
      return authentification;
  }
  public Date getLogindate() {
      return logindate;
  }
  public void setLogindate(Date logindate) {
      this.logindate = logindate;
  }
  public Date getLogoutDate() {
      return logoutDate;
  }
  public void setLogoutDate(Date logoutDate) {
      this.logoutDate = logoutDate;
  }
  public void setAuthentification(Integer authentification) {
      this.authentification = authentification;
  }
  public List&lt;Role&gt; getListeRole() {
      return listeRole;
  }
  public void setListeRole(List&lt;Role&gt; listeRole) {
      this.listeRole = listeRole;
  }
  public Employe(String username, String password, String email,
          boolean statut, String typeEmploye, Integer authentification,
          List&lt;Role&gt; listeRole) {
      super(username, password, email, statut);
      TypeEmploye = typeEmploye;
      this.authentification = authentification;
      this.listeRole = listeRole;
  }
  public Employe() {
      super();
      // TODO Auto-generated constructor stub
  }}
  </code></pre>
  
  <p>thanks for you help</p>