-->
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.  [ 3 posts ] 
Author Message
 Post subject: cache setting in the hibernate.cfg.xml of caveatemptor
PostPosted: Thu Jan 12, 2006 5:00 pm 
Regular
Regular

Joined: Fri Jan 28, 2005 3:11 am
Posts: 81
I am a bit confused. In
src\etc\junit\hibernate.cfg.xml
you have the following settings

Code:
        <property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
        <property name="cache.use_query_cache">false</property>
        <property name="cache.use_minimal_puts">false</property>
        <property name="max_fetch_depth">3</property>


Your comment there says
Code:
<!-- Use EHCache but not the query cache. -->


Now, in \src\etc\webapp.test\conf\hibernate.cfg.xml, you have the same settings, except the comment there says
Code:
<!-- Disable second-level cache, effectively -->



Well, which one would it actually accomplish, i.e. would EHCache still be used?

Also, what's the rationale for not using
Code:
<property name="hibernate.cache.use_second_level_cache">false</property>
Wouldn't that produce the intended result?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 10, 2006 3:50 am 
Newbie

Joined: Mon Sep 26, 2005 7:48 am
Posts: 1
I am also confusing that and waiting for the answer.
:-)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 10, 2006 6:10 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Guys, it's simply an out-of-date comment.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.