title: How to pass parameter in HQL query
body: <p>find below my HQL query</p>
  
  <pre><code> Query query = session.createQuery("select u from UserLog u where u.userLogSerialno = " + "(select max(uu.userLogSerialno) from UserLog uu where uu.userId = u.userId)");
  </code></pre>
  
  <p>This query is working fine but in this, I want to pass the value of userId but I am not able to figure out how to do this. 
  Kindly Help..!!
  Thanks in Advance..!!</p>