You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cayenne.apache.org by Gary Jarrel <ga...@gmail.com> on 2010/02/12 01:50:21 UTC
Cayenne Programmatic Configuration
Hi All
I noticed that the in 3.0 onwards Configuration.setDataSourceFactory has
been depricated. What are some of the best practices to configure Cayenne
programmaticly?
Perhaps the best way to set the Datasource via Spring!
Thank you
Gary
Re: Cayenne Programmatic Configuration
Posted by Andrus Adamchik <an...@objectstyle.org>.
I suggest that while on 3.0 you keep using 'setDataSourceFactory' (I
think I will go as far as removing the deprecated note from the setter
in 3.0).
> Perhaps the best way to set the Datasource via Spring!
You can if you want to, this can still be based on
'setDataSourceFactory' call.
Andrus
On Feb 12, 2010, at 2:50 AM, Gary Jarrel wrote:
> Hi All
>
> I noticed that the in 3.0 onwards Configuration.setDataSourceFactory
> has
> been depricated. What are some of the best practices to configure
> Cayenne
> programmaticly?
>
> Perhaps the best way to set the Datasource via Spring!
>
> Thank you
>
> Gary