title: MappingException with Unknown entity
body: <p>Basic example used annotations. Configured the mapping class in hibernate.cfg.xml.
  But I am getting this exception <code>org.hibernate.MappingException: Unknown entity: com.fh.entities.Customer</code></p>
  
  <pre><code>package com.fh.entities;
  
  @Entity
  public class Customer {
      @Id
      private int id;
      private String firstName;
      private String lastName;
      private String mobile;
      private String email;
  //setters &amp; getters.
  }
  </code></pre>
  
  <p>In hibernate.cfg.xml:</p>
  
  <pre><code>&lt;hibernate-configuration&gt;
      &lt;session-factory&gt;
          &lt;!-- Database connection settings --&gt;
          &lt;property name="connection.driver_class"&gt;oracle.jdbc.driver.OracleDriver&lt;/property&gt;
          &lt;property name="connection.url"&gt;jdbc:oracle:thin:@localhost:1521:xe&lt;/property&gt;
          &lt;property name="connection.username"&gt;test&lt;/property&gt;
          &lt;property name="connection.password"&gt;system&lt;/property&gt;
          &lt;property name="dialect"&gt;org.hibernate.dialect.Oracle10gDialect&lt;/property&gt;
          &lt;!-- Echo all executed SQL to stdout --&gt;
          &lt;property name="show_sql"&gt;true&lt;/property&gt;
          &lt;!-- Drop and re-create the database schema on startup --&gt;
          &lt;property name="hbm2ddl.auto"&gt;create&lt;/property&gt;
          &lt;mapping class ="com.fh.entities.Customer"&gt;&lt;/mapping&gt;
      &lt;/session-factory&gt;
  &lt;/hibernate-configuration&gt;
  </code></pre>
  
  <p>I am getting exception in Eclipse as below:</p>
  
  <pre><code>SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
  SLF4J: Defaulting to no-operation (NOP) logger implementation
  SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further 
  Exception in thread "main" org.hibernate.MappingException: Unknown entity: com.fh.entities.Customer
  </code></pre>