-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Conceptual Questions on TreeCache
PostPosted: Mon Nov 22, 2004 8:10 pm 
Newbie

Joined: Wed Nov 10, 2004 9:27 pm
Posts: 4
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.

Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 23, 2004 4:32 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Why should the cache change the semantics of the API?

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.