title: Hibernate 4.1Final alternative for Hibernate.STRING
body: <p>I was using Hibernate 3.6 where I have a code like this: </p>
  
  <pre><code>list =getSession().createSQLQuery(queryString)
          .addScalar("UNAME",Hibernate.STRING)
          .addScalar("COM",Hibernate.STRING)
          .addScalar("COM_DATE",Hibernate.DATE) 
          .setString("id", Id).list();
  </code></pre>
  
  <p>now I change the jar from 3.6 to 4.1Final</p>
  
  <p>it seems like the addScalar method is askying for Type in stead of Hibernate.STRING
  I couldn't find any example hot to resolve this. if there is anyone that who know please help me thank you. </p>