Spring boot org.hibernate.hql.internal.ast.QuerySyntaxException: Utilisateur is not mapped (with MYSQL)
<p>Hi I am using Mysql with Spring boot and when i am using the query method with the CrudRepository hibernate can't match with my table.</p>

<p>My User class : </p>

<pre><code>@Entity

@Table(name="Utilisateur")

public class User{

    @Id
    private long id;
    @Column(name="nom")
    private String nom;
    @Column(name="prenom")
    private String prenom;
    @Column(name="admin")
    private boolean admin;
    @Column(name="actif")
    private boolean actif;
    @Column(name="logins")
    private String logins;
    @Column(name="email")
    private String email;
    @Column(name="naissance")
    private String naissance;
    @Column(name="pwd")
    private String pwd;
    @Column(name="compte")
    private String compte;

    public User(){

    }

    public User(String nom, String prenom, boolean admin, boolean actif, String logins, String email, String naissance, String pwd, String compte) {
        this.nom = nom;
        this.prenom = prenom;
        this.admin = admin;
        this.actif = actif;
        this.logins = logins;
        this.email = email;
        this.naissance = naissance;
        this.pwd = pwd;
        this.compte = compte;
    }
/*Getters and setters*/
}
</code></pre>

<p>My second class implement CrudRepository : </p>

<pre><code>@Repository
public interface UserDao  extends CrudRepository&lt;User,Long&gt;{

    public User findByEmail(String email);
    public List&lt;User&gt; findByLogins(String logins);
    public List&lt;User&gt; findAll();

    @Query("SELECT u FROM Utilisateur u where id=?1")
    public User findById(int Id);
}
</code></pre>

<p>And for finish i am using a class for test with junit : </p>

<pre><code>@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(classes = RecipyApplication.class)
@WebAppConfiguration
public class RecipyApplicationTests {

    @Autowired
    private UserDao userDao;
    @Test
    public void should_get_user_by_id(){
        User user = userDao.findById(1);
        Assert.assertNotNull("the id can't be null ",user);
    }

}
</code></pre>

<p>And i don't understand why hibernate can't match with my database when i am using @Query. Thank you  </p>