title: Hibernate 5.2.5.Final createSQLQuery() method deprecated
body: <p>I'm using the <code>createSQL()</code> method in Hibernate to make an insert operation in my database. </p>
  
  <p>What I want to do is declraing a custom SQL statement so that I can apply a <code>MD5()</code> function to a field on a table. That's why I can't just simply use the <code>save(Object)</code> method.</p>
  
  <p>I got a warning from Eclipse IDE that says: 
  <code>The method createSQLQuery(String) from the type QueryProducer is deprecated.</code></p>
  
  <p>Despite of this the insert operation is performing as expected.</p>
  
  <p>The current version of Hibernate I'm using on my project is 5.2.5.Final.</p>
  
  <p>So, the question would be: is there another way to achieve the same in this version of Hibernate in order to get rid of that annoying warning? </p>
  
  <p>I also know adding <code>@SuppressWarnings("deprecation")</code> annotation will solve the issue, but I'm not pretty sure whether it will cause any problems in the future.</p>
  
  <p>It's worth mentioning that I'm a begginer using this framework. </p>