Re: Cayenne 3.1 - how to create autoadapter

2011-02-11 Thread Øyvind Harboe
On Thu, Feb 10, 2011 at 3:55 PM, Andrus Adamchik wrote: > There is a new constructor for AutoAdapter: > >   public AutoAdapter(Provider adapterProvider) How do I create a Provider? I searched for examples in the Cayenne code, but what I found was in the DefaultDbAdapterFactory and I was not able

Re: Cayenne 3.1 - how to create autoadapter

2011-02-10 Thread Andrus Adamchik
There is a new constructor for AutoAdapter: public AutoAdapter(Provider adapterProvider) > While injection is an implementation detail, it is used in the > documentation: We are still trying to write the Java classes managed via injection in a manner that should not prevent their creation in

Cayenne 3.1 - how to create autoadapter

2011-02-10 Thread Øyvind Harboe
I have a warning that this 'new AutoAdapter(dataSource)' is deprecated. What do I do instead? The implementation of the above uses deprecated methods, otherwise I would have thought that the source provided the solution on this one. While injection is an implementation detail, it is used in the