Hibernate version: 2.0
Code:
Session session = sessionFactory.openSession();
t1 = session.BeginTransaction();
session.save(obj1);
t1.commit();
obj1.propty = "XXXX";
t2 = session.BeginTransaction();
session.save(obj2);
t2.commit();
session.close();
My problem is when t2.commit(); it also changes the value of obj1, however, I don't want this. I just want transaction commit the save/update/delete action after the transaction is decleared. Is it possible to prevent obj1 change without evict the obj from current session. that is, control the save and update action with in transaction level but not session.