You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NH-3848 - Child collection fetched using left outer join with on clause or where clause restrictions on fetched collection shouldn’t be stored in second level cache. #1341
Lukasz created an issue — 22nd February 2016, 11:36:30:
Reproductions Steps:
Enable second level cache in nh configuration.
Create entity with collection.
Enable second level cache on collection (on collection entity also ofc).
Open session.
Create QueryOver (Criteria or HQL) which fetch root entities with children collections using left outer join with some restrictions on collection.
E.g.
Alexander Zaytsev added a comment — 7th April 2017, 1:37:44:
<~Lukasz> your pull request(s) do not consider 2 separate fetches. When there is a collection with restrictions and another one without then I expect that the collection without restrictions would be cached.
So, the property "CanAddCollectionsToCache" shall probably be a dictionary.