title: Error in setting Hibernate Configuration
body: <p>I am getting error coming in to configure hibernate for postgresql database -</p>
  
  <p><img src="https://i.stack.imgur.com/KDe5I.png" alt="enter image description here"></p>
  
  <p><strong>Error Log Details -</strong></p>
  
  <pre><code>org.hibernate.HibernateException: could not instantiate RegionFactory [org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge]
      at org.hibernate.cfg.SettingsFactory.createRegionFactory(SettingsFactory.java:402)
      at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:270)
      at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2163)
      at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2159)
      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1383)
      at org.hibernate.console.ConsoleConfiguration$5.execute(ConsoleConfiguration.java:278)
      at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
      at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:107)
      at org.hibernate.console.ConsoleConfiguration.buildSessionFactory(ConsoleConfiguration.java:273)
      at org.hibernate.eclipse.console.workbench.LazySessionFactoryAdapter.getChildren(LazySessionFactoryAdapter.java:43)
      at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.getChildren(BasicWorkbenchAdapter.java:100)
      at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:106)
      at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:235)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
  Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      at org.hibernate.cfg.SettingsFactory.createRegionFactory(SettingsFactory.java:397)
      ... 13 more
  Caused by: org.hibernate.cache.CacheException: could not instantiate CacheProvider [org.hibernate.cache.internal.NoCacheProvider]
      at org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge.&lt;init&gt;(RegionFactoryCacheProviderBridge.java:66)
      ... 18 more
  Caused by: java.lang.ClassNotFoundException: org.hibernate.cache.internal.NoCacheProvider cannot be found by org.hibernate.eclipse.libs_3.7.1.Final-v20131205-0918-B107
      at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
      at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
      at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
      at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:191)
      at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:192)
      at org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge.&lt;init&gt;(RegionFactoryCacheProviderBridge.java:63)
      ... 18 more
  </code></pre>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>After the changes mentioned by @ConMan, I am getting a new error at the same place -</p>
  
  <pre><code>org.hibernate.HibernateException: Could not instantiate dialect class
      at org.hibernate.dialect.resolver.DialectFactory.constructDialect(DialectFactory.java:163)
      at org.hibernate.dialect.resolver.DialectFactory.buildDialect(DialectFactory.java:109)
      at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:146)
      at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2163)
      at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2155)
      at org.hibernate.console.ConsoleConfiguration$6.execute(ConsoleConfiguration.java:430)
      at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
      at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:107)
      at org.hibernate.console.ConsoleConfiguration.getSettings(ConsoleConfiguration.java:428)
      at org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter$2.execute(LazyDatabaseSchemaWorkbenchAdapter.java:119)
      at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
      at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:107)
      at org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter.readDatabaseSchema(LazyDatabaseSchemaWorkbenchAdapter.java:115)
      at org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter.getChildren(LazyDatabaseSchemaWorkbenchAdapter.java:65)
      at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:106)
      at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:235)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
  Caused by: java.lang.ClassCastException: org.hibernate.dialect.PostgreSQLDialect cannot be cast to org.hibernate.dialect.Dialect
      at org.hibernate.dialect.resolver.DialectFactory.constructDialect(DialectFactory.java:157)
      ... 16 more
  </code></pre>