-->
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.  [ 1 post ] 
Author Message
 Post subject: Behaviour of hibernate query cache for non-cacheable entity
PostPosted: Thu Jan 09, 2014 3:09 am 
Newbie

Joined: Tue Nov 26, 2013 5:55 am
Posts: 2
Hi All,
I am developing a web application using Spring 2.5.6, Hibernate 3.3. I want to implement cache mechanism using query cache in my application.So I have question regarding the same:

As to make a use of query cache we also need to enable second level cache, so I have enabled same and I am maintaining second level cache at entity level.I have 2 entities 1) Plan 2) Fund. Now I have enabled cache for Plan entity by writing Cache usage tag in there hbm file and not enable for Fund entity. I am writing join query to get data from this 2 tables and set that query as Cacheable.

So how it stores data internally? is only Plan data is store in second level cache and to retrieve Fund data it always hit database?

Thanks.


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

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.