Hibernate version: 3
Name and version of the database you are using: Mysql 5.0
I'm not using any type of cache.
I update an object and on the database the update is ok but hibernate load it with the last status before the changed.
If I try to re-load the object again the object is loaded with the correct status, If I try again to re-load maybe it will be loaded with the correct status or not.. ?¿¡
I thing the problem is here:
Code:
DEBUG org.hibernate.event.def.DefaultLoadEventListener(244) - entity found in session cache
This way is how I open and close the Hibernate sessions:
Code:
Session s = SessionFactory.openSession();
session.beginTransaction();
... the update ...
session.getTransaction().commit();
I don't use ehcache.. not lazy loads..
What is happening?
Thanks.
d2clon