title: How to update cell Data using Hibernate SQL query
body: <p>I have a table 'users', with many columns, among them two are 'Username' and 'Password'
  username is primary key column</p>
  
  <p>I want to update password for a username. here is my code it is working fine (no error or exception) but not updating password.</p>
  
  <p>I am new to Hibernate and do not know much of its syntax. please help me</p>
  
  <pre><code> String query = "UPDATE users SET Password = '"+ newPassword +"' WHERE Username = '"+ login.getUsername() + "'";
  
   session.createSQLQuery(query);
  </code></pre>
  
  <p>login.getUsername() is getting required username correctly</p>
  
  <p>Rest of code is working fine problem is in above code.</p>