Re: 3.1 example app

2011-09-12 Thread Andrus Adamchik
It is very new, so all the neat tricks are still to be developed based on configuration guidelines :-). Also keep in mind that the injection mechanism was designed for Cayenne, not for end user apps, so it is intentionally unassuming in most cases. Andrus On Sep 13, 2011, at 2:47 AM, Marek Ša

3.1 example app

2011-09-12 Thread Marek Šabo
Hi, I would like to know whether there is an example app featuring most of new (DI) features in 3.1. I didn't have problem with configuration but I didn't find any injection examples or neat tricks in tutorial or on website. Regards, Marek

Re: Cayenne 3.1 & Caching under Lifecycle

2011-09-12 Thread Andrus Adamchik
The status of cayenne-lifecycle module is very experimental. We add utilities there that we don't want to see in the core because we don't want to commit to supporting them 3 major releases from now. So use at your own risk ;) Having said that, it is all based on core API's that we are definitel

Re: Cayenne Transactions

2011-09-12 Thread Malcolm Edgar
Please take a look at the example at the bottom of the page: http://cayenne.apache.org/doc20/understanding-transactions.html I use Cayenne in a fairly straight forward manner, and perform transactions explicitly in code rather than using an AOP approach. With regard to Spring integration, Cayenn

Cayenne 3.1 & Caching under Lifecycle

2011-09-12 Thread Gary Jarrel
Hi All, Going though the 3.1 code again, and notice the CacheGroups annotation and CacheInvalidationFilter class for invalidating cache. Question is, will this become a standard for invalidating cache in Cayenne, or are these just examples of what can be achived with DataChannelFilter and it's up

Re: Some more on 3.1 Conversion

2011-09-12 Thread Gary Jarrel
Thank you Andrus. On Mon, Sep 12, 2011 at 7:46 PM, Andrus Adamchik wrote: > Yeah, it turned to be redundant and was removed. You should bind directly to > implementation class: > >   binder.bind(QueryCache.class).to(OSQueryCache.class); > > On Sep 12, 2011, at 12:35 PM, Gary Jarrel wrote: > >> I

Re: Some more on 3.1 Conversion

2011-09-12 Thread Andrus Adamchik
Yeah, it turned to be redundant and was removed. You should bind directly to implementation class: binder.bind(QueryCache.class).to(OSQueryCache.class); On Sep 12, 2011, at 12:35 PM, Gary Jarrel wrote: > I switched over to 3.1-SNAPSHOT from the repository and now the > OSQueryCacheProvider.c

Re: Some more on 3.1 Conversion

2011-09-12 Thread Gary Jarrel
I switched over to 3.1-SNAPSHOT from the repository and now the OSQueryCacheProvider.class is missing!? How would I achieve the same cache setting in the latest source?! Gary On Mon, Sep 12, 2011 at 4:45 PM, Andrus Adamchik wrote: > Actually take this back.. before I upgraded to the pre-M3 trun