title: Hibernate association references unmapped class exception
body: <p>I have the following class:</p>
  
  <pre><code>public class Car implements Comparable&lt;Car&gt;{
  
  private long idCar;
  
  private String model;
  
  private String immat; //Car License Plate
  
  private Company company;
  
  private Manufacturer manufacturer;    
  
  private Calendar registrationDate;
  
  private Calendar lastControlDate;
  
  //Has empty constructor + Getters and setters here onwards...
  </code></pre>
  
  <p>and it's hibernate configuration file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"      "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"&gt;
  &lt;hibernate-mapping&gt;
    &lt;class name="Car" table="cars" lazy="true"&gt; 
      &lt;id name="idCar" type="long" column="idCar"&gt;
        &lt;generator class="native" /&gt;
      &lt;/id&gt;
  
      &lt;property name="model" type="string" column="model" /&gt;
      &lt;property name="immat" type="string" column="immat" /&gt;
      &lt;property name="registrationDate" type="date" column="registrationDate" /&gt;
      &lt;property name="lastControlDate" type="date" column="lastControlDate" /&gt;
  
      &lt;many-to-one name="company" class="fr.model.company.Company" column="idCompany"
       not-null="true" /&gt;
      &lt;many-to-one name="manufacturer" class="fr.model.component.Manufacturer"
               column="idManufacturer" not-null="true" /&gt;    
  
    &lt;/class&gt;
  &lt;/hibernate-mapping&gt;
  </code></pre>
  
  <p>and the Manufacturer class:</p>
  
  <pre><code>public class Manufacturer implements Comparable&lt;Manufacturer&gt; {
  
  private Long idManufacturer;
  private String name;
  </code></pre>
  
  <p>I keep getting the association unmapped references error but I can't figure out why so far.</p>
  
  <p>Edit: Manufacturer mapping - </p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"&gt;
  &lt;hibernate-mapping&gt;
    &lt;class name="Manufacturer" table="manufacturer"&gt;
        &lt;id name="idManufacturer" type="long" column="idManufacturer"&gt;
              &lt;generator class="native" /&gt;
      &lt;/id&gt;
  
      &lt;property name="name" type="string" not-null="true" /&gt;
  
    &lt;/class&gt;
  
  &lt;/hibernate-mapping&gt;
  </code></pre>
  
  <p>Exception:</p>
  
  <pre><code>Initial SessionFactory creation failed.org.hibernate.MappingException: 
  Association references unmapped class: fr.synapture.model.company.Car
  </code></pre>