-->
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: Hibernate First Level and Second Level Caching
PostPosted: Sun Oct 14, 2007 12:26 pm 
Newbie

Joined: Sun Oct 14, 2007 11:57 am
Posts: 2
Location: Bangalore
I am a newbie to hibernate framework as a whole. I have a requirement to redirect the hibernate caching mechanism into a subframework.

I have written custom cache providers for the first level and second level caching.

The problem is:
<b> When the When the session factory is built then the FirstLevelCacheProviderWrapper is initialized instead of SecondLevelCacheProviderWrapper. Also the SecondLevelCacheProviderWrapper never does get initialized.
Please help me with this as I am having a terrible time figuring out why this is happening. </b>

My Hibernate Configuration for caching is something like this.

<property name="hibernate.cache.provider_class">
core.wrappers.SecondLevelCacheProviderWrapper
</property>

<property name="cache.provider_class">
core.wrappers.FirstLevelCacheProviderWrapper
</property>

<property name="hibernate.cache.region.factory_class">
org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge
</property>

<property name="hibernate.cache.use_structured_entries">
true
</property>

<property name="hibernate.cache.use_second_level_cache">
true
</property>

<property name="hibernate.cache.region_prefix">
enterprise
</property>

<property name="hibernate.cache.use_query_cache">true</property>
<property name="hibernate.cache.query_cache_factory">
org.hibernate.cache.StandardQueryCacheFactory
</property>


Top
 Profile  
 
 Post subject: Forgot to mention the version
PostPosted: Sun Oct 14, 2007 12:27 pm 
Newbie

Joined: Sun Oct 14, 2007 11:57 am
Posts: 2
Location: Bangalore
I am using Hibernate 3.2.0 / 3.2.2 now I have upgraded to 3.2.5 GA


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.