Re: [hibernate-dev] 2nd-level cache suggestions

2008-04-01 Thread Alex Besogonov
Max Rydahl Andersen wrote: 1. I think it's possible to add a manual collection cache entry update in the postAction() callback. And it'll probably work. How would you ensure that the cache is consistent ? Not a problem. Dirty extra lazy collections are already evicted from the cache during the

Re: [hibernate-dev] 2nd-level cache suggestions

2008-04-01 Thread Max Rydahl Andersen
> I propose the following solutions: > > 1. I think it's possible to add a manual collection cache entry update > in the postAction() callback. And it'll probably work. How would you ensure that the cache is consistent ? "extra lazy collections" is kinda opposite to what "cached collections" is

[hibernate-dev] 2nd-level cache suggestions

2008-03-31 Thread Alex Besogonov
Good ! I'm writing a custom "lazy materialized" multimap collection for Hibernate. The main reason I'm doing this is that I want to use 2nd-level cache. So far, I've found several problems with the way caching is implemented in Hibernate: 1. Collections are not cached unless they are compl