title: JpaRepository count query QuerySyntaxException entity is not mapped
body: <pre><code>public interface EventoRepository extends JpaRepository&lt;Evento, String&gt;,     JpaSpecificationExecutor&lt;Evento&gt; {  
  public Evento findById(String id);
  public List&lt;Evento&gt; findByStatus(String status, Pageable page);
  public List&lt;Evento&gt; findById_User(Long id_user,Pageable page);
  
  @Query("select count(e) FROM evento e WHERE e.status = ?1 AND e.id_user = ?2")
  int countByStatus(String status, long id_user);
  
  @Query("SELECT count(e) FROM evento e WHERE e.id_user= ?1")
  int countAll(long id_user);
  
  @Query("SELECT count(e) FROM evento e WHERE e.status IS NOT = ?1 AND e.id_user = ?2")
  int countBySospesi(String status, long id_user);
  }
  </code></pre>
  
  <p>I have this situation, and when i launch my project in apache Tomcat it generate Exception:
  - Caused by: java.lang.IllegalArgumentException: Validation failed for query for method public abstract java.lang.Long net.petrikainulainen.spring.social.signinmvc.user.repository.EventoRepository.countAll(long)!
  - Caused by: java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException: evento is not mapped [SELECT count(e) FROM evento e WHERE e.id_user= ?1]
  - Caused by: org.hibernate.hql.internal.ast.QuerySyntaxException: evento is not mapped [SELECT count(e) FROM evento e WHERE e.id_user= ?1]</p>
  
  <p>Can anyone help me please to find cause of this exception please?</p>