title: org.hibernate.hql.internal.ast.QuerySyntaxException: Invalid path: '1.id'
body: <p>I get this error but i can't figure out reason ? can anyone help me plz; </p>
  
  <h2>File : AnnonceDao.java</h2>
  
  <pre><code>public List&lt;AnnonceColocation&gt; listeAnnonceColocation( UserEntity idUser ) {
      Query query = getEntityManger()
              .createQuery(
                      "from AnnonceColocation, Annonce where AnnonceColocation.id = Annonce.id and Annonce.annonceUser= :idUser" )
              .setParameter( "idUser", idUser );
      List&lt;AnnonceColocation&gt; annonceColocation = (List) query.getResultList();
      return annonceColocation;
  }
  </code></pre>
  
  <h2>File: Annonce.java</h2>
  
  <pre><code>@Entity
  @Table( name = "annonce" )
  @Inheritance( strategy = InheritanceType.JOINED )
  public class Annonce extends BaseEntity {
  
  // attribut
  // getter&amp;setter
  
    }
  </code></pre>
  
  <h2>File: AnnonceColocation.java</h2>
  
  <pre><code>    @Entity
      @Table( name = "annonceColocation" )
      @PrimaryKeyJoinColumn( name = "ID" )
      public class AnnonceColocation extends Annonce {
  
            // attribut 
            // getter/setter
       }
  </code></pre>