2010/7/21 Andrus Adamchik :
> I totally understand what you are saying about simplicity and certainly
> don't want to sacrifice any of that here. Along these lines I am trying to
> avoid adding special cases of mapping that are not generic enough, which
> actually makes things more complex in the e
I totally understand what you are saying about simplicity and
certainly don't want to sacrifice any of that here. Along these lines
I am trying to avoid adding special cases of mapping that are not
generic enough, which actually makes things more complex in the end.
Both for us, as we end u
2010/7/20 Andrus Adamchik :
> So how do we solve it? I would like to avoid tying a "query execution event"
> directly to cache refresh. Maybe instead we can attach this new type of
> events (at the beginning EJBQL/SQLTemplate events) to the same set of
> listeners as entity events? A listener can b
Ok, now I finally see what you are saying (sorry for being so
slow :-)) Yes, a listener will only be notified of entity events and
running a SQLTemplate won't cause such an event.
So how do we solve it? I would like to avoid tying a "query execution
event" directly to cache refresh. Maybe i
Thx, for your reply.
Now, I see only events related with Entity manipulations. Is there a
way to add listener for NamedQuery execution?
As I understand Event listeners could be configured in some "static"
section while Cayenne configuration initialization...
It's not so bad until you have ~30 cas
Sorry for not replying to this earlier. Per my comment on CAY-1465, I
suggest just map entity event listeners to do cache invalidation. I am
personally doing that everywhere.
Andrus
On Jul 13, 2010, at 12:56 PM, Evgeny Ryabitskiy wrote:
Hello 2 everyone!
I was studing Group Cache stuff. A
Hello 2 everyone!
I was studing Group Cache stuff. And it's pretty cool!
Only thing I am missing is marking some NamedQuery as Group Refresh Query.
It can be useful for this case:
I have 2 selects (NamedQueries) for table Artists, which have SHARED
cache policy:
MyArtistsSelectQuery1 from group