Hi Frank, For the annotation to get processed, you will need to add CacheInvalidationFilter to your ServerRuntime. Here is an example:
https://github.com/andrus/wowodc13/blob/94ac0f4920a5f494c4e73de717c05e5a54302921/editor/src/main/java/demo/editor/services/cayenne/EditorCayenneService.java Hope this helps, Andrus > On Feb 3, 2016, at 7:55 PM, Frank Herrmann > <frank.herrm...@modernizingmedicine.com> wrote: > > Hello All, > > I was wondering if there is anything special I might be missing to utilize > the @CacheGroups annotation for query caching. I have successfully gotten > Cayenne to use Ehcache for query caching. I have cache groups specified in > the ehcache.xml file. However, if I use the @CacheGroups annotation on an > object, it appears to be ignored. The caching still goes to the default > cache. If I specify the cache group in the code, i.e. > query.setCacheGroups(), everything works fine, and the cache group is > utilized. > > I am using Cayenne 3.1. > > Thanks to anyone who can point me in the right direction. > > -Frank > > -- > FRANK HERRMANN > SOFTWARE ENGINEER > > T: 561-880-2998 x1563 > > E: frank.herrm...@modmed.com > > > > [image: [ Modernizing Medicine ]] <http://www.modmed.com/> > [image: [ Facebook ]] <http://www.facebook.com/modernizingmedicine> [image: > [ LinkedIn ]] <http://www.linkedin.com/company/modernizing-medicine/> [image: > [ YouTube ]] <http://www.youtube.com/user/modernizingmedicine> [image: [ > Twitter ]] <https://twitter.com/modmed_EMA> [image: [ Blog ]] > <http://www.modmed.com/BlogBeyondEMR> [image: [ Instagram ]] > <http://instagram.com/modernizing_medicine>