title: Jboss Hibernate Tools: Reading error schema - Probably a JDBC driver Issue
body: <p>Hello i am trying to use JBoss Hibernate Tools for Reverse  engineering. I am using <code>eclipse luna</code> and latest hibernate jboss tools from eclipse market place. When i trying to configure the hibernate tools configuration, After configuration done, when i expand the tree and expand <code>database</code> node, it generate an following error: </p>
  
  <pre><code>&lt;Reading Schema Error: Could not get list of suggested identity strategies from database. Probably a JDBC Driver Problem&gt;
  </code></pre>
  
  <p>Stack Trace: </p>
  
  <pre><code>org.hibernate.exception.SQLGrammarException: Could not get list of suggested identity strategies from database. Probably a JDBC driver problem. 
  at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:92)
  at org.hibernate.cfg.reveng.dialect.MySQLMetaDataDialect.getSuggestedPrimaryKeyStrategyName(MySQLMetaDataDialect.java:55)
  at org.hibernate.cfg.reveng.JDBCReader.processPrimaryKey(JDBCReader.java:429)
  at org.hibernate.cfg.reveng.JDBCReader.readDatabaseSchema(JDBCReader.java:86)
  at org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter$2.execute(LazyDatabaseSchemaWorkbenchAdapter.java:126)
  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:238)
  at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
  Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-empirecl-test  like 'oauth_access_token'' at line 1
  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
  at java.lang.reflect.Constructor.newInstance(Unknown Source)
  at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
  at com.mysql.jdbc.Util.getInstance(Util.java:383)
  at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1062)
  at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4226)
  at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4158)
  </code></pre>
  
  <p>My database connection with eclipse is build successfully beacause with the help of <code>Database explore</code> by eclipse make connection successfully and also display all tables. I am using <code>Hibernate 4.3</code> and latest <code>MySQL driver 5.1.31</code>. Following are the screen shots of my configuration. </p>
  
  <ol>
  <li><p><img src="https://i.stack.imgur.com/4l4eA.jpg" alt="enter image description here"></p></li>
  <li><p><img src="https://i.stack.imgur.com/f15GL.jpg" alt="enter image description here"></p></li>
  </ol>
  
  <p>Following is my <code>hibernate.cfg.xml</code> file: </p>
  
  <pre><code>&lt;hibernate-configuration&gt;
  &lt;session-factory&gt;
      &lt;property name="hibernate.connection.driver_class"&gt;com.mysql.jdbc.Driver&lt;/property&gt;
      &lt;property name="hibernate.connection.password"&gt;password&lt;/property&gt;
      &lt;property name="hibernate.connection.url"&gt;jdbc:mysql://localhost:3306/nit-empirecl-test&lt;/property&gt;
      &lt;property name="hibernate.connection.username"&gt;root&lt;/property&gt;
      &lt;property name="hibernate.dialect"&gt;org.hibernate.dialect.MySQLDialect&lt;/property&gt;
  &lt;/session-factory&gt;
  &lt;/hibernate-configuration&gt;
  </code></pre>