Hi,
I have a problem when I update something with Hibernate ...
When I update an object in a List sometimes sees the new object, sometimes not, sometimes I see 2changes before... : S
Let me give you an example:
Utente has many Info_utente.
When I update a Info_utente a Utente do:
Code:
Session fac = HibernateUtil.currentSession();
fac.beginTransaction();
Info_utente info_utente = (Info_utente) fac.get(Info_utente.class, id);
info_utente.setRisposta("test");
Utente utente = info_utente.getUtente();
fac.update(info_utente);
fac.update(utente);
fac.flush();
fac.getTransaction().commit();
Sorry for my bad english