title: org.hibernate.hql.internal.ast.QuerySyntaxException: <table_name> is not mapped [from <table_name>]
body: <p><strong>Here is my <code>hibernate.cfg.xml</code></strong>
      
      </p>
  
  <pre><code>&lt;hibernate-configuration&gt;
      &lt;session-factory&gt;           
          &lt;property name="hibernate.dialect"&gt;org.hibernate.dialect.MySQLDialect&lt;/property&gt;
          &lt;property name="hibernate.connection.driver_class"&gt;com.mysql.jdbc.Driver&lt;/property&gt;
  
          &lt;!-- Assume hibernateTutorial is the database name --&gt;
          &lt;property name="hibernate.connection.url"&gt;jdbc:mysql://localhost/hibernateTutorial&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="current_session_context_class"&gt;org.hibernate.context.ThreadLocalSessionContext&lt;/property&gt;
          &lt;property name="connection.provider_class"&gt;org.hibernate.connection.C3P0ConnectionProvider&lt;/property&gt;
          &lt;property name="hibernate.c3p0.idle_test_period"&gt;3600&lt;/property&gt;
          &lt;property name="hibernate.c3p0.timeout"&gt;28800&lt;/property&gt;
  
          &lt;!-- List of XML mapping files. Give absolute path of the xml files after 
              src/ --&gt;
          &lt;mapping resource="xml/Employee.hbm.xml"&gt;&lt;/mapping&gt;
      &lt;/session-factory&gt;
  &lt;/hibernate-configuration&gt;
  </code></pre>
  
  <p><strong>Here is my table <code>EMPLOYEE</code></strong></p>
  
  <pre><code>desc EMPLOYEE;
  +------------+-------------+------+-----+---------+----------------+
  | Field      | Type        | Null | Key | Default | Extra          |
  +------------+-------------+------+-----+---------+----------------+
  | id         | int(11)     | NO   | PRI | NULL    | auto_increment |
  | first_name | varchar(20) | YES  |     | NULL    |                |
  | last_name  | varchar(20) | YES  |     | NULL    |                |
  | salary     | int(11)     | YES  |     | NULL    |                |
  +------------+-------------+------+-----+---------+----------------+
  </code></pre>
  
  <p><strong>Here is my <code>Employee.hbm.xml</code></strong> (Employee.java comes under the package dto)</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE hibernate-mapping PUBLIC
  "-//Hibernate/Hibernate Mapping DTD//EN"
  "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"&gt;
  &lt;hibernate-mapping&gt;
      &lt;class name="dto.Employee" table="EMPLOYEE"&gt;
          &lt;meta attribute="class-description"&gt;
              This class contains the employee details.
          &lt;/meta&gt;
          &lt;id name="id" type="int" column="id"&gt;
              &lt;generator class="native" /&gt;
          &lt;/id&gt;
          &lt;property name="firstName" column="first_name" type="string" /&gt;
          &lt;property name="lastName" column="last_name" type="string" /&gt;
          &lt;property name="salary" column="salary" type="int" /&gt;
      &lt;/class&gt;
  &lt;/hibernate-mapping&gt;
  </code></pre>
  
  <p><strong>Here is my main class <code>ManageEmployee.java</code></strong></p>
  
  <pre><code>private static SessionFactory factory = null;
  private static Session session = null;
  
  @SuppressWarnings({ "deprecation", "unused" })
  public static void main(String[] args) {
      System.out.println("adding employees");
      // Add employee
      System.out.println("adding employee 1");
      Integer emp1 = addEmployee("Emp1FN", "Emp1LN", 1000);
      System.out.println("adding employee 2");
      Integer emp2 = addEmployee("Emp2FN", "Emp2LN", 1000);
      System.out.println("adding employee 3");
      Integer emp3 = addEmployee("Emp3FN", "Emp3LN", 1000);
  
      // list employees
      System.out.println("listing employees");
      List&lt;Employee&gt; employeeList = listEmployees();
      System.out.println(employeeList);
  
      // update employees
      System.out.println("updating employee1");
      updateEmployee(emp1, "Emp4FN", "Emp4LN", 5000);
  
      // list employees
      System.out.println("listing employees");
      employeeList = listEmployees();
      System.out.println(employeeList);
  
      // delete employees
      System.out.println("deleting employee 2");
      deleteEmployee(emp2);
  
      // list employees
      System.out.println("listing employees");
      employeeList = listEmployees();
      System.out.println(employeeList);
  }
  
  @SuppressWarnings("deprecation")
  private static void deleteEmployee(Integer empID) {
      Transaction tx = null;
      try {
          factory = new Configuration().configure().buildSessionFactory();
          System.out.println("factory configured");
          session = factory.openSession();
          tx = session.beginTransaction();
          Employee emp = (Employee) session.get(Employee.class, empID);
          session.delete(emp);
          tx.commit();
      } catch (HibernateException e) {
          System.out
                  .println("HibernateException while deleting from EMPLOYEE :: "
                          + e.getMessage());
          e.printStackTrace();
          if (tx != null) {
              tx.rollback();
          }
          System.exit(1);
      } finally {
          if (session != null) {
              session.close();
          }
      }
  }
  
  private static void updateEmployee(int empID, String firstName,
          String lastName, int salary) {
      Transaction tx = null;
      try {
          factory = new Configuration().configure().buildSessionFactory();
          System.out.println("factory configured");
          session = factory.openSession();
          tx = session.beginTransaction();
          Employee emp = (Employee) session.get(Employee.class, empID);
          emp = new Employee(firstName, lastName, salary);
          session.update(emp);
          tx.commit();
      } catch (HibernateException e) {
          System.out
                  .println("HibernateException while updating into EMPLOYEE :: "
                          + e.getMessage());
          e.printStackTrace();
          if (tx != null) {
              tx.rollback();
          }
          System.exit(1);
      } finally {
          if (session != null) {
              session.close();
          }
      }
  }
  
  @SuppressWarnings({ "unchecked", "deprecation" })
  private static List&lt;Employee&gt; listEmployees() {
      List&lt;Employee&gt; employeeList = new ArrayList&lt;Employee&gt;();
      Transaction tx = null;
      try {
          factory = new Configuration().configure().buildSessionFactory();
          System.out.println("factory configured");
          session = factory.openSession();
          tx = session.beginTransaction();
          employeeList = session.createQuery("from EMPLOYEE").list();
      } catch (HibernateException e) {
          System.out
                  .println("HibernateException while selecting from EMPLOYEE :: "
                          + e.getMessage());
          e.printStackTrace();
          if (tx != null) {
              tx.rollback();
          }
          System.exit(1);
      } finally {
          if (session != null) {
              session.close();
          }
      }
      return employeeList;
  }
  
  private static Integer addEmployee(String firstName, String lastName,
          int salary) {
      Integer empID = null;
      Transaction tx = null;
      try {
          factory = new Configuration().configure().buildSessionFactory();
          System.out.println("factory configured");
          session = factory.openSession();
          tx = session.beginTransaction();
          Employee emp = new Employee(firstName, lastName, salary);
          empID = (Integer) session.save(emp);
          tx.commit();
      } catch (HibernateException e) {
          System.out
                  .println("HibernateException while inserting into EMPLOYEE :: "
                          + e.getMessage());
          e.printStackTrace();
          if (tx != null) {
              tx.rollback();
          }
          System.exit(1);
      } finally {
          if (session != null) {
              session.close();
          }
      }
      return empID;
  }
  </code></pre>
  
  <p>When I execute the main(), I get exception, with the following stack trace-</p>
  
  <pre><code>adding employees
  adding employee 1
  Jul 5, 2013 2:05:12 PM org.hibernate.annotations.common.Version &lt;clinit&gt;
  INFO: HCANN000001: Hibernate Commons Annotations {4.0.2.Final}
  Jul 5, 2013 2:05:12 PM org.hibernate.Version logVersion
  INFO: HHH000412: Hibernate Core {4.2.3.Final}
  Jul 5, 2013 2:05:12 PM org.hibernate.cfg.Environment &lt;clinit&gt;
  INFO: HHH000205: Loaded properties from resource hibernate.properties: {hibernate.connection.driver_class=org.h2.Driver, hibernate.dialect=org.hibernate.dialect.H2Dialect, hibernate.max_fetch_depth=5, hibernate.format_sql=true, hibernate.generate_statistics=true, hibernate.connection.username=sa, hibernate.connection.url=jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1;MVCC=TRUE, hibernate.bytecode.use_reflection_optimizer=false, hibernate.jdbc.batch_versioned_data=true, hibernate.connection.pool_size=5}
  Jul 5, 2013 2:05:12 PM org.hibernate.cfg.Environment buildBytecodeProvider
  INFO: HHH000021: Bytecode provider name : javassist
  Jul 5, 2013 2:05:13 PM org.hibernate.cfg.Configuration configure
  INFO: HHH000043: Configuring from resource: /hibernate.cfg.xml
  Jul 5, 2013 2:05:13 PM org.hibernate.cfg.Configuration getConfigurationInputStream
  INFO: HHH000040: Configuration resource: /hibernate.cfg.xml
  Jul 5, 2013 2:05:13 PM org.hibernate.internal.util.xml.DTDEntityResolver resolveEntity
  WARN: HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
  Jul 5, 2013 2:05:13 PM org.hibernate.cfg.Configuration addResource
  INFO: HHH000221: Reading mappings from resource: xml/Employee.hbm.xml
  Jul 5, 2013 2:05:13 PM org.hibernate.cfg.Configuration doConfigure
  INFO: HHH000041: Configured SessionFactory: null
  Jul 5, 2013 2:05:13 PM org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator getConfiguredConnectionProviderName
  WARN: HHH000208: org.hibernate.connection.C3P0ConnectionProvider has been deprecated in favor of org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider; that provider will be used instead.
  Jul 5, 2013 2:05:13 PM org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator instantiateExplicitConnectionProvider
  INFO: HHH000130: Instantiating explicit connection provider: org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider
  Jul 5, 2013 2:05:13 PM org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider configure
  INFO: HHH010002: C3P0 using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost/hibernateTutorial
  Jul 5, 2013 2:05:13 PM org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider configure
  INFO: HHH000046: Connection properties: {user=root, password=****}
  Jul 5, 2013 2:05:13 PM org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider configure
  INFO: HHH000006: Autocommit mode: false
  Jul 5, 2013 2:05:13 PM com.mchange.v2.log.MLog &lt;clinit&gt;
  INFO: MLog clients using java 1.4+ standard logging.
  Jul 5, 2013 2:05:13 PM com.mchange.v2.c3p0.C3P0Registry banner
  INFO: Initializing c3p0-0.9.2.1 [built 20-March-2013 10:47:27 +0000; debug? true; trace: 10]
  Jul 5, 2013 2:05:13 PM com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource getPoolManager
  INFO: Initializing c3p0 pool... com.mchange.v2.c3p0.PoolBackedDataSource@143cf7f5 [ connectionPoolDataSource -&gt; com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@14e02320 [ acquireIncrement -&gt; 3, acquireRetryAttempts -&gt; 30, acquireRetryDelay -&gt; 1000, autoCommitOnClose -&gt; false, automaticTestTable -&gt; null, breakAfterAcquireFailure -&gt; false, checkoutTimeout -&gt; 0, connectionCustomizerClassName -&gt; null, connectionTesterClassName -&gt; com.mchange.v2.c3p0.impl.DefaultConnectionTester, debugUnreturnedConnectionStackTraces -&gt; false, factoryClassLocation -&gt; null, forceIgnoreUnresolvedTransactions -&gt; false, identityToken -&gt; 1hge1778v1c9qur3n1bnbv|1d6a56e, idleConnectionTestPeriod -&gt; 3600, initialPoolSize -&gt; 3, maxAdministrativeTaskTime -&gt; 0, maxConnectionAge -&gt; 0, maxIdleTime -&gt; 28800, maxIdleTimeExcessConnections -&gt; 0, maxPoolSize -&gt; 15, maxStatements -&gt; 0, maxStatementsPerConnection -&gt; 0, minPoolSize -&gt; 3, nestedDataSource -&gt; com.mchange.v2.c3p0.DriverManagerDataSource@634a2fd5 [ description -&gt; null, driverClass -&gt; null, factoryClassLocation -&gt; null, identityToken -&gt; 1hge1778v1c9qur3n1bnbv|16921fd, jdbcUrl -&gt; jdbc:mysql://localhost/hibernateTutorial, properties -&gt; {user=******, password=******} ], preferredTestQuery -&gt; null, propertyCycle -&gt; 0, statementCacheNumDeferredCloseThreads -&gt; 0, testConnectionOnCheckin -&gt; false, testConnectionOnCheckout -&gt; false, unreturnedConnectionTimeout -&gt; 0, usesTraditionalReflectiveProxies -&gt; false; userOverrides: {} ], dataSourceName -&gt; null, factoryClassLocation -&gt; null, identityToken -&gt; 1hge1778v1c9qur3n1bnbv|1cb52ae, numHelperThreads -&gt; 3 ]
  Jul 5, 2013 2:05:13 PM org.hibernate.dialect.Dialect &lt;init&gt;
  INFO: HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
  Jul 5, 2013 2:05:13 PM org.hibernate.engine.jdbc.internal.LobCreatorBuilder useContextualLobCreation
  INFO: HHH000423: Disabling contextual LOB creation as JDBC driver reported JDBC version [3] less than 4
  Jul 5, 2013 2:05:13 PM org.hibernate.engine.transaction.internal.TransactionFactoryInitiator initiateService
  INFO: HHH000399: Using default transaction strategy (direct JDBC transactions)
  Jul 5, 2013 2:05:13 PM org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory &lt;init&gt;
  INFO: HHH000397: Using ASTQueryTranslatorFactory
  factory configured
  adding employee 2
  Jul 5, 2013 2:05:14 PM org.hibernate.cfg.Configuration configure
  INFO: HHH000043: Configuring from resource: /hibernate.cfg.xml
  Jul 5, 2013 2:05:14 PM org.hibernate.cfg.Configuration getConfigurationInputStream
  INFO: HHH000040: Configuration resource: /hibernate.cfg.xml
  Jul 5, 2013 2:05:14 PM org.hibernate.internal.util.xml.DTDEntityResolver resolveEntity
  WARN: HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
  Jul 5, 2013 2:05:14 PM org.hibernate.cfg.Configuration addResource
  INFO: HHH000221: Reading mappings from resource: xml/Employee.hbm.xml
  Jul 5, 2013 2:05:14 PM org.hibernate.cfg.Configuration doConfigure
  INFO: HHH000041: Configured SessionFactory: null
  Jul 5, 2013 2:05:14 PM org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator getConfiguredConnectionProviderName
  WARN: HHH000208: org.hibernate.connection.C3P0ConnectionProvider has been deprecated in favor of org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider; that provider will be used instead.
  Jul 5, 2013 2:05:14 PM org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator instantiateExplicitConnectionProvider
  INFO: HHH000130: Instantiating explicit connection provider: org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider
  Jul 5, 2013 2:05:14 PM org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider configure
  INFO: HHH010002: C3P0 using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost/hibernateTutorial
  Jul 5, 2013 2:05:14 PM org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider configure
  INFO: HHH000046: Connection properties: {user=root, password=****}
  Jul 5, 2013 2:05:14 PM org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider configure
  INFO: HHH000006: Autocommit mode: false
  Jul 5, 2013 2:05:14 PM com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource getPoolManager
  INFO: Initializing c3p0 pool... com.mchange.v2.c3p0.PoolBackedDataSource@5d5da90b [ connectionPoolDataSource -&gt; com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@1799a99f [ acquireIncrement -&gt; 3, acquireRetryAttempts -&gt; 30, acquireRetryDelay -&gt; 1000, autoCommitOnClose -&gt; false, automaticTestTable -&gt; null, breakAfterAcquireFailure -&gt; false, checkoutTimeout -&gt; 0, connectionCustomizerClassName -&gt; null, connectionTesterClassName -&gt; com.mchange.v2.c3p0.impl.DefaultConnectionTester, debugUnreturnedConnectionStackTraces -&gt; false, factoryClassLocation -&gt; null, forceIgnoreUnresolvedTransactions -&gt; false, identityToken -&gt; 1hge1778v1c9qur3n1bnbv|1ac1e22, idleConnectionTestPeriod -&gt; 3600, initialPoolSize -&gt; 3, maxAdministrativeTaskTime -&gt; 0, maxConnectionAge -&gt; 0, maxIdleTime -&gt; 28800, maxIdleTimeExcessConnections -&gt; 0, maxPoolSize -&gt; 15, maxStatements -&gt; 0, maxStatementsPerConnection -&gt; 0, minPoolSize -&gt; 3, nestedDataSource -&gt; com.mchange.v2.c3p0.DriverManagerDataSource@1158f897 [ description -&gt; null, driverClass -&gt; null, factoryClassLocation -&gt; null, identityToken -&gt; 1hge1778v1c9qur3n1bnbv|1f8d077, jdbcUrl -&gt; jdbc:mysql://localhost/hibernateTutorial, properties -&gt; {user=******, password=******} ], preferredTestQuery -&gt; null, propertyCycle -&gt; 0, statementCacheNumDeferredCloseThreads -&gt; 0, testConnectionOnCheckin -&gt; false, testConnectionOnCheckout -&gt; false, unreturnedConnectionTimeout -&gt; 0, usesTraditionalReflectiveProxies -&gt; false; userOverrides: {} ], dataSourceName -&gt; null, factoryClassLocation -&gt; null, identityToken -&gt; 1hge1778v1c9qur3n1bnbv|18ed77a, numHelperThreads -&gt; 3 ]
  Jul 5, 2013 2:05:14 PM org.hibernate.dialect.Dialect &lt;init&gt;
  INFO: HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
  Jul 5, 2013 2:05:14 PM org.hibernate.engine.jdbc.internal.LobCreatorBuilder useContextualLobCreation
  INFO: HHH000423: Disabling contextual LOB creation as JDBC driver reported JDBC version [3] less than 4
  Jul 5, 2013 2:05:14 PM org.hibernate.engine.transaction.internal.TransactionFactoryInitiator initiateService
  INFO: HHH000399: Using default transaction strategy (direct JDBC transactions)
  Jul 5, 2013 2:05:14 PM org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory &lt;init&gt;
  INFO: HHH000397: Using ASTQueryTranslatorFactory
  factory configured
  adding employee 3
  Jul 5, 2013 2:05:14 PM org.hibernate.cfg.Configuration configure
  INFO: HHH000043: Configuring from resource: /hibernate.cfg.xml
  Jul 5, 2013 2:05:14 PM org.hibernate.cfg.Configuration getConfigurationInputStream
  INFO: HHH000040: Configuration resource: /hibernate.cfg.xml
  Jul 5, 2013 2:05:14 PM org.hibernate.internal.util.xml.DTDEntityResolver resolveEntity
  WARN: HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
  Jul 5, 2013 2:05:14 PM org.hibernate.cfg.Configuration addResource
  INFO: HHH000221: Reading mappings from resource: xml/Employee.hbm.xml
  Jul 5, 2013 2:05:14 PM org.hibernate.cfg.Configuration doConfigure
  INFO: HHH000041: Configured SessionFactory: null
  Jul 5, 2013 2:05:14 PM org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator getConfiguredConnectionProviderName
  WARN: HHH000208: org.hibernate.connection.C3P0ConnectionProvider has been deprecated in favor of org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider; that provider will be used instead.
  Jul 5, 2013 2:05:14 PM org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator instantiateExplicitConnectionProvider
  INFO: HHH000130: Instantiating explicit connection provider: org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider
  Jul 5, 2013 2:05:14 PM org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider configure
  INFO: HHH010002: C3P0 using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost/hibernateTutorial
  Jul 5, 2013 2:05:14 PM org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider configure
  INFO: HHH000046: Connection properties: {user=root, password=****}
  Jul 5, 2013 2:05:14 PM org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider configure
  INFO: HHH000006: Autocommit mode: false
  Jul 5, 2013 2:05:14 PM com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource getPoolManager
  INFO: Initializing c3p0 pool... com.mchange.v2.c3p0.PoolBackedDataSource@ef16aa44 [ connectionPoolDataSource -&gt; com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@f894d859 [ acquireIncrement -&gt; 3, acquireRetryAttempts -&gt; 30, acquireRetryDelay -&gt; 1000, autoCommitOnClose -&gt; false, automaticTestTable -&gt; null, breakAfterAcquireFailure -&gt; false, checkoutTimeout -&gt; 0, connectionCustomizerClassName -&gt; null, connectionTesterClassName -&gt; com.mchange.v2.c3p0.impl.DefaultConnectionTester, debugUnreturnedConnectionStackTraces -&gt; false, factoryClassLocation -&gt; null, forceIgnoreUnresolvedTransactions -&gt; false, identityToken -&gt; 1hge1778v1c9qur3n1bnbv|1a70b8, idleConnectionTestPeriod -&gt; 3600, initialPoolSize -&gt; 3, maxAdministrativeTaskTime -&gt; 0, maxConnectionAge -&gt; 0, maxIdleTime -&gt; 28800, maxIdleTimeExcessConnections -&gt; 0, maxPoolSize -&gt; 15, maxStatements -&gt; 0, maxStatementsPerConnection -&gt; 0, minPoolSize -&gt; 3, nestedDataSource -&gt; com.mchange.v2.c3p0.DriverManagerDataSource@62985545 [ description -&gt; null, driverClass -&gt; null, factoryClassLocation -&gt; null, identityToken -&gt; 1hge1778v1c9qur3n1bnbv|15cd9c0, jdbcUrl -&gt; jdbc:mysql://localhost/hibernateTutorial, properties -&gt; {user=******, password=******} ], preferredTestQuery -&gt; null, propertyCycle -&gt; 0, statementCacheNumDeferredCloseThreads -&gt; 0, testConnectionOnCheckin -&gt; false, testConnectionOnCheckout -&gt; false, unreturnedConnectionTimeout -&gt; 0, usesTraditionalReflectiveProxies -&gt; false; userOverrides: {} ], dataSourceName -&gt; null, factoryClassLocation -&gt; null, identityToken -&gt; 1hge1778v1c9qur3n1bnbv|83d37a, numHelperThreads -&gt; 3 ]
  Jul 5, 2013 2:05:14 PM org.hibernate.dialect.Dialect &lt;init&gt;
  INFO: HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
  Jul 5, 2013 2:05:14 PM org.hibernate.engine.jdbc.internal.LobCreatorBuilder useContextualLobCreation
  INFO: HHH000423: Disabling contextual LOB creation as JDBC driver reported JDBC version [3] less than 4
  Jul 5, 2013 2:05:14 PM org.hibernate.engine.transaction.internal.TransactionFactoryInitiator initiateService
  INFO: HHH000399: Using default transaction strategy (direct JDBC transactions)
  Jul 5, 2013 2:05:14 PM org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory &lt;init&gt;
  INFO: HHH000397: Using ASTQueryTranslatorFactory
  factory configured
  listing employees
  Jul 5, 2013 2:05:14 PM org.hibernate.cfg.Configuration configure
  INFO: HHH000043: Configuring from resource: /hibernate.cfg.xml
  Jul 5, 2013 2:05:14 PM org.hibernate.cfg.Configuration getConfigurationInputStream
  INFO: HHH000040: Configuration resource: /hibernate.cfg.xml
  Jul 5, 2013 2:05:14 PM org.hibernate.internal.util.xml.DTDEntityResolver resolveEntity
  WARN: HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
  Jul 5, 2013 2:05:14 PM org.hibernate.cfg.Configuration addResource
  INFO: HHH000221: Reading mappings from resource: xml/Employee.hbm.xml
  Jul 5, 2013 2:05:14 PM org.hibernate.cfg.Configuration doConfigure
  INFO: HHH000041: Configured SessionFactory: null
  Jul 5, 2013 2:05:14 PM org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator getConfiguredConnectionProviderName
  WARN: HHH000208: org.hibernate.connection.C3P0ConnectionProvider has been deprecated in favor of org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider; that provider will be used instead.
  Jul 5, 2013 2:05:14 PM org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator instantiateExplicitConnectionProvider
  INFO: HHH000130: Instantiating explicit connection provider: org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider
  Jul 5, 2013 2:05:14 PM org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider configure
  INFO: HHH010002: C3P0 using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost/hibernateTutorial
  Jul 5, 2013 2:05:14 PM org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider configure
  INFO: HHH000046: Connection properties: {user=root, password=****}
  Jul 5, 2013 2:05:14 PM org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider configure
  INFO: HHH000006: Autocommit mode: false
  Jul 5, 2013 2:05:14 PM com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource getPoolManager
  INFO: Initializing c3p0 pool... com.mchange.v2.c3p0.PoolBackedDataSource@646ad3f9 [ connectionPoolDataSource -&gt; com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@ef169246 [ acquireIncrement -&gt; 3, acquireRetryAttempts -&gt; 30, acquireRetryDelay -&gt; 1000, autoCommitOnClose -&gt; false, automaticTestTable -&gt; null, breakAfterAcquireFailure -&gt; false, checkoutTimeout -&gt; 0, connectionCustomizerClassName -&gt; null, connectionTesterClassName -&gt; com.mchange.v2.c3p0.impl.DefaultConnectionTester, debugUnreturnedConnectionStackTraces -&gt; false, factoryClassLocation -&gt; null, forceIgnoreUnresolvedTransactions -&gt; false, identityToken -&gt; 1hge1778v1c9qur3n1bnbv|83d8be, idleConnectionTestPeriod -&gt; 3600, initialPoolSize -&gt; 3, maxAdministrativeTaskTime -&gt; 0, maxConnectionAge -&gt; 0, maxIdleTime -&gt; 28800, maxIdleTimeExcessConnections -&gt; 0, maxPoolSize -&gt; 15, maxStatements -&gt; 0, maxStatementsPerConnection -&gt; 0, minPoolSize -&gt; 3, nestedDataSource -&gt; com.mchange.v2.c3p0.DriverManagerDataSource@a961744b [ description -&gt; null, driverClass -&gt; null, factoryClassLocation -&gt; null, identityToken -&gt; 1hge1778v1c9qur3n1bnbv|a010ba, jdbcUrl -&gt; jdbc:mysql://localhost/hibernateTutorial, properties -&gt; {user=******, password=******} ], preferredTestQuery -&gt; null, propertyCycle -&gt; 0, statementCacheNumDeferredCloseThreads -&gt; 0, testConnectionOnCheckin -&gt; false, testConnectionOnCheckout -&gt; false, unreturnedConnectionTimeout -&gt; 0, usesTraditionalReflectiveProxies -&gt; false; userOverrides: {} ], dataSourceName -&gt; null, factoryClassLocation -&gt; null, identityToken -&gt; 1hge1778v1c9qur3n1bnbv|14aa2db, numHelperThreads -&gt; 3 ]
  Jul 5, 2013 2:05:14 PM org.hibernate.dialect.Dialect &lt;init&gt;
  INFO: HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
  Jul 5, 2013 2:05:14 PM org.hibernate.engine.jdbc.internal.LobCreatorBuilder useContextualLobCreation
  INFO: HHH000423: Disabling contextual LOB creation as JDBC driver reported JDBC version [3] less than 4
  Jul 5, 2013 2:05:14 PM org.hibernate.engine.transaction.internal.TransactionFactoryInitiator initiateService
  INFO: HHH000399: Using default transaction strategy (direct JDBC transactions)
  Jul 5, 2013 2:05:14 PM org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory &lt;init&gt;
  INFO: HHH000397: Using ASTQueryTranslatorFactory
  factory configured
  HibernateException while selecting from EMPLOYEE :: EMPLOYEE is not mapped [from EMPLOYEE]
  org.hibernate.hql.internal.ast.QuerySyntaxException: EMPLOYEE is not mapped [from EMPLOYEE]
      at org.hibernate.hql.internal.ast.util.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:180)
      at org.hibernate.hql.internal.ast.tree.FromElementFactory.addFromElement(FromElementFactory.java:110)
      at org.hibernate.hql.internal.ast.tree.FromClause.addFromElement(FromClause.java:93)
      at org.hibernate.hql.internal.ast.HqlSqlWalker.createFromElement(HqlSqlWalker.java:324)
      at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.fromElement(HqlSqlBaseWalker.java:3420)
      at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.fromElementList(HqlSqlBaseWalker.java:3309)
      at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.fromClause(HqlSqlBaseWalker.java:706)
      at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:562)
      at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:299)
      at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:247)
      at org.hibernate.hql.internal.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:249)
      at org.hibernate.hql.internal.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:184)
      at org.hibernate.hql.internal.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:137)
      at org.hibernate.engine.query.spi.HQLQueryPlan.&lt;init&gt;(HQLQueryPlan.java:105)
      at org.hibernate.engine.query.spi.HQLQueryPlan.&lt;init&gt;(HQLQueryPlan.java:80)
      at org.hibernate.engine.query.spi.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:168)
      at org.hibernate.internal.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:221)
      at org.hibernate.internal.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:199)
      at org.hibernate.internal.SessionImpl.createQuery(SessionImpl.java:1778)
      at api.ManageEmployee.listEmployees(ManageEmployee.java:118)
      at api.ManageEmployee.main(ManageEmployee.java:32)
  </code></pre>
  
  <p>I'm finding it hard to figure out where I am going wrong? I'm using hibernate.4.2.3.jar and I've included all the jars this contains.</p>