title: registerOutParameter for a Stored procedure
body: <p>I am using hibernate and I migrated to the version 5.6.9 Final where there is no more the Connection() method.</p>
  <p>I have this query on which we used to call registerOutParameter to specify the OUT parameter type for a stored procedure.</p>
  <pre><code>query.registerOutParameter(2, java.sql.Types.DATE)
  </code></pre>
  <p>after searching the only solution I found is using registerStoredProcedureParameter on a StoredProcedureQuery.</p>
  <p>Is it right what I did? do they do the same thing?</p>