title: HibernateTemplate Update Query
body: <p>How to use hql update query using hibernate template
  thi is the hql statement "update Login set empSmartId = 48750005" +" where empPassword = 6328ef1675ddb7106eba8dc2661961d7"</p>
  
  <p>using getHibernatetemplate()</p>
  
  <p>Current code:</p>
  
  <pre><code> public class LoginDaoImp extends HibernateDaoSupport implements LoginDao { 
  public boolean resetAttempt(Login login) { 
  try { login.setAttempt(0); 
  getHibernateTemplate().update(login); 
  return true; 
  } catch (Exception e) { e.printStackTrace(); } 
  return false; } 
  i can save whole pojo class above code work but i want to use where condition to update only hibernateTemplate to update the data
  </code></pre>