I am using hibernate v3.2.3.ga.
I have searched for various combinations of the key words filter and second level cache and found nothing that seems relevant.
Essentially, I have several association collections mapped to a parent class. Some are sets and some are maps. Some have sort some do not. they all have the <cache> element defined. Some of these associations are stored in the second level cache but some are not. The ones that are not have only one feature in common: They have a filter defined that is enabled on the session when the query is executed. At this point I am pretty confident that it is the filters that are in the way of having the entire object graph loaded from second level cache on the second request for it.
Is it possible to have hibernate get these collections from the second level cache instead of going to the database each time?
Thanks,
Dana
|