title: query with join HibernateTemplate ()
body: <p>code T the code of class TypeCompetence</p>
  
  <pre><code>@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "typeCompetence")
      public Set&lt;Criteres&gt; getCritereses() {
          return this.critereses;
      }
  </code></pre>
  
  <p>the code of class Criteres</p>
  
  <pre><code>@ManyToOne(fetch = FetchType.LAZY)
      @JoinColumn(name = "id_type_compete")
      public TypeCompetence getTypeCompetence() {
          return this.typeCompetence;
      }
  </code></pre>
  
  <p>the code of class CriteresDAO</p>
  
  <pre><code>public List&lt;Criteres&gt; FindidAspetComp(){
  
          String queryString = "from Criteres c ,TypeCompetence t where c.id_type_compete = t.id_type_compete AND t.id_type_compete = 4 ";
          return getHibernateTemplate().find(queryString);
      }
  </code></pre>
  
  <p>error</p>
  
  <pre><code>javax.servlet.ServletException: could not resolve property: id_type_compete of: tn.com.ModuleEVL.domaine.Criteres [from tn.com.ModuleEVL.domaine.Criteres c ,tn.com.ModuleEVL.domaine.TypeCompetence t where c.id_type_compete = t.id_type_compete AND t.id_type_compete = 4 ];
  </code></pre>