title: No Dialect mapping for JDBC type: -1 : NullPointerException
body: <p>I am having Null Pointer Exception while using the following code.</p>
  
  <pre><code> List&lt;Object&gt; = getSession().createSQLQuery(sqlQueryString)
                   .setResultTransformer(Transformers.aliasToBean(Target.class)).list();  
  </code></pre>
  
  <p>I have seen this question for reference: <a href="https://stackoverflow.com/questions/5386648/non-managed-entity-in-hibernate">https://stackoverflow.com/questions/5386648/non-managed-entity-in-hibernate</a>, But it is not useful for me, Because the query result does not have any null values. So i unable to find what is wrong with my code. Can anyone solve this?</p>
  
  <p>Thanks in advance. </p>