title: could not determine type for: com.model.User, for columns: [org.hibernate.mapping.Column(user)]
body: <p>Although this question asked many times and I have already used all the suggestion but still I am getting this error. 
  could not determine type for: com.model.User, for columns: [org.hibernate.mapping.Column(user)]
  and tn</p>
  
  <p>hibernate.cfg.xml configuration</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE hibernate-configuration PUBLIC
      "-//Hibernate/Hibernate Configuration DTD//EN"
      "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"&gt;
  
  
  
  &lt;hibernate-configuration&gt;
    &lt;session-factory&gt;
      &lt;property name= "CONNECTION.driver_class"&gt;com.mysql.jdbc.Driver&lt;/property&gt;
      &lt;property name="hibernate.connection.url"&gt;jdbc:mysql://localhost:3306/covoiturage&lt;/property&gt;
     &lt;property name="hibernate.connection.username"&gt;root&lt;/property&gt;
      &lt;property name="hibernate.connection.password"&gt;&lt;/property&gt;
  
  
  
      &lt;property name="hibernate CONNECTION.pool_size"&gt;1&lt;/property&gt;
      &lt;property name="show_sql"&gt;true&lt;/property&gt;
      &lt;property name="hibernate.dialect"&gt;org.hibernate.dialect.MySQLDialect&lt;/property&gt;
      &lt;property name="hibernate.hbm2ddl.auto"&gt;create&lt;/property&gt;
   &lt;mapping class="com.model.Messagerie"/&gt;
      &lt;mapping class="com.model.Trajet"/&gt;
      &lt;mapping class="com.model.User"/&gt;
      &lt;mapping class="com.model.Voiture"/&gt;
  
  
     &lt;/session-factory&gt;
  &lt;/hibernate-configuration&gt;
  </code></pre>
  
  <p>User.java</p>
  
  <pre><code>@Entity
  @Table(name="User")
  public class User{
  
      @Id
       @GeneratedValue(strategy=GenerationType.IDENTITY)
      @Column(name="iduser")
      private int iduser;
  
      @ManyToOne
      @JoinColumn(name="idvoiture", nullable=false)
      private Voiture voit;
               *
               *
               *
               *
      public Voiture getVoiture() {
          return voit;
      }
  
      public void setVoiture(Voiture voiture) {
          this.voit = voiture;
      }
  
  
  }
  </code></pre>
  
  <p>Voiture.java</p>
  
  <pre><code>@Entity
  @Table(name="Voiture")
  public class Voiture{
  
      @Id
        @GeneratedValue(strategy=GenerationType.IDENTITY)
      @Column(name="idvoiture")
      private int idvoiture;
  
      @OneToMany(mappedBy = "voit", cascade = CascadeType.ALL)
      private List&lt;User&gt; listeUsers;
               *
               *
               *
  public List&lt;User&gt; getListeUsers() {
          return listeUsers;
      }
  
      public void setListeUsers(List&lt;User&gt; listeUsers) {
          this.listeUsers = listeUsers;
      }
  </code></pre>