title: Hibernate createSQLQuery JOIN throws exception
body: <p>I'm trying to use hibernate to return data from multiple tables of my database.
  The query works fine on my SQL server, however it does not seem to work in hibernate.</p>
  
  <pre><code>Query threadQuery = session.createSQLQuery("SELECT CONCAT(t.lastposter) as lastposter, t.lastpost, t.title, t.threadid, t.lastpostid, t.firstpostid, t.forumid, p.pagetext FROM vbulletin.thread AS t INNER JOIN vbulletin.post AS p ON p.postid = t.firstpostid WHERE t.open != 10 AND t.visible = 1 AND t.forumid != 19 AND t.forumid != 20 ORDER BY t.lastpost DESC").setResultTransformer(Transformers.aliasToBean(VbulletinThread.class));
  </code></pre>
  
  <p>Exception</p>
  
  <pre><code>org.hibernate.MappingException: No Dialect mapping for JDBC type: -1
  </code></pre>
  
  <p>Note: it works fine when I remove p.pagetext from the query.</p>