Joined: Wed Jun 22, 2005 10:07 am Posts: 5
|
Hibernate version: 3.0.4
Second level Cache Provider: EHCache
Hi,
1) I am executing a query with setCacheable(true) and a specific cache region namely "entity". I have enabled query cache as well. Am I right in thinking that all that this action does is store the sql string with the id's of the entities returned ?
2) If I want to take advantage of the second level cache do I have to specify a cache strategy for the entity returned by the query?
3)Does it matter if I use a different cache region for my query and my entity cache strategy?
4) Since I have already set a strategy for my entity why do I get the sql hits for subsequent queries( different sessions)? I only have one SessionFactory for my app.
Thanks
|
|