I have a db with 5 pieces (id, question, result) and i want to change my db with update query and hibernate.
I tried this
public void update()
{
try
{
Session session = getSession();
Transaction tx = session.beginTransaction();
Query query = getSession().createQuery("update Nodes set question = 'test updating' where id = 1" );
tx.commit();
session.close();
I don't have error, in console i have
Infos: Hibernate: update node set question='test updating' where id=1
Hibernate execute my update without error but there is not in my db, why ?
Thanks