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.
|