Re: Cayenne cache strategy

2012-05-23 Thread Andrus Adamchik
> The problem seems related to the fact that committing the changes regarding > the newly created object doesn't result in a refresh of the Cayenne cache, > and so the very same result retrieved for List a is returned also for List > b. Correct. There's no good generic algorithm to efficiently det

Cayenne cache strategy

2012-05-23 Thread cghersi
Hi all, I'm trying to use the query cache of Cayenne 3.0. My code snippet for the typical query is: private List query(Expression qualifier) { DataContext context = config.getDomain("MyDomain").createDataContext(); SelectQuery select = new SelectQuery(MyClass.class, qualifier); select.setC

Re: Spring Security authentication

2012-05-23 Thread Malcolm Edgar
You need to put a Cayenne DataContext Filter in front of the SpringSecurity filter. regards On Wed, May 23, 2012 at 3:36 PM, Tony Giaccone wrote: > > > I'm trying to implement a Spring Security Authentication using Cayenne. > > The problem is that when the spring security gets called, there's n