title: Hibernate update not working
body: <p>I am new with hibernate and I was trying to update a mapped object with the following code, but it does not update</p>
  
  <pre><code>factory = config.buildSessionFactory();
  session = factory.getCurrentSession();
  Transaction t = session.beginTransaction();
  String hql = "UPDATE  "+tableName+" SET  "+columnName+" =  '"+columnValue+"' WHERE  id ="+id+";";
  Query query=session.createSQLQuery(hql);
  t.commit();
  </code></pre>
  
  <p>Am I missing something? It do not crash nor update the record.</p>
  
  <p>NOTE: I am using Hibernate3 and Mysql</p>