-->
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.  [ 4 posts ] 
Author Message
 Post subject: why is ehcache-1.2.3.jar necessary?
PostPosted: Wed Apr 23, 2008 10:33 am 
Newbie

Joined: Fri Apr 04, 2008 9:12 am
Posts: 5
I've built and run the hello example and modified the hibernate.cfg.xml for my "real" project. I got "class not found" errors until I added ehcache-1.2.3.jar to the project. Why was that necessary. As far as I know I haven't specified any caching. Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 23, 2008 3:22 pm 
Expert
Expert

Joined: Mon Nov 26, 2007 2:29 pm
Posts: 443
when no second0-evel cache is specified, Hibernate uses ehcache by default, with little all-purpose configuration file hidden within the jar.

_________________
Gonzalo Díaz


Top
 Profile  
 
 Post subject: cache again
PostPosted: Wed Apr 23, 2008 4:16 pm 
Newbie

Joined: Fri Apr 04, 2008 9:12 am
Posts: 5
Can I configure things so that Hibernate won't use a second level cache?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 23, 2008 4:28 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
of course:
http://www.hibernate.org/hib_docs/reference/en/html/batch.html

Code:
hibernate.cache.use_second_level_cache false

_________________
Sanne
http://in.relation.to/


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