In the Modeler there is a dropdown for the DataNode called "DataSource
Factory". Here you can specify your own class that implements
"org.apache.cayenne.conf.DataSourceFactory" interface. Your own
factory can implement 'getDataSource' method to pop up a dialog asking
user to enter DB info on first call, or do whatever is appropriate in
your case.
Cheers,
Andrus
On Apr 3, 2008, at 3:38 AM, Scott Anderson wrote:
> Is there a way I can customize the driver/url/login information
> through
> my application code? I want the user to be able to select the location
> and login credentials, but the schema is known. I don't want the
> user to
> have to write his or her own configuration files and repackage the
> distributed jar, though.
>
This archive was generated by hypermail 2.0.0 : Thu Apr 03 2008 - 10:11:27 EDT