-->
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: Disabling all caching in Hibernate 3
PostPosted: Fri Sep 21, 2007 4:37 pm 
Beginner
Beginner

Joined: Mon Dec 06, 2004 4:20 pm
Posts: 34
Hello,

I suspect I'm having some problems with Hibernate caching, since first-time-through operations give me a lazy instantiation exception, but further operations do not. In other words, the first time the application starts, I go to retrieve an object graph, and I get the exception. Further attempts to access that object graph succeed. The reason I suspect the cache is that certain relationships are lazy-instantiation="true" and others, "false".

It seems that the ones that are "true" are giving me the problems. Perhaps I'm doing something wrong in the code, but I'd like to eliminate the cache as a problem.

So, how do I disable it globally?

Thanks,

Don


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 21, 2007 8:31 pm 
Newbie

Joined: Thu Dec 30, 2004 3:51 pm
Posts: 14
Try this?

Code:
<prop key="hibernate.cache.provider_class">org.hibernate.cache.NoCacheProvider</prop>
<prop key="hibernate.cache.use_second_level_cache">false</prop>


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 23, 2007 3:46 pm 
Beginner
Beginner

Joined: Mon Dec 06, 2004 4:20 pm
Posts: 34
Thanks very much for your reply! That certainly disabled the cache, but didn't solve my problem. At least I have now eliminated that as the source of the problem.

Don


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.