Code A:
tx = s.beginTransaction();
s.save(wo);
tx.commit();
Code B:
s.save(wo);
s.flush();
Assuming I have Hibernate 2.1 configured to work with TreeCache in JBoss 3.2.6:
In Code A, when 'tx.commit()' is executed, does it write the 'wo' object to the database or the treecache or both? What about Code B? Does it write to the database, treecache, or both? Just trying to understand the API when a JVM-level cache is involved.
Last edited by bsaravan on Mon Feb 04, 2008 12:35 am, edited 1 time in total.
|