Re: Framework EOModels
Re: Framework EOModels
- Subject: Re: Framework EOModels
- From: Gino Pacitti <email@hidden>
- Date: Thu, 23 Apr 2015 02:23:22 +0100
Yes it works for Mysql with :
<your_model_name>.URL = jdbc:mysql:<path>
< your_model_name >.DBUser = <username>
< your_model_name >.DBPassword = <password>
< your_model_name >.DBPlugin = MySQL
< your_model_name >.DBDriver = org.gjt.mm.mysql.Driver
<your_othermodel_name>.URL = jdbc:mysql:<path>
< your_othermodel_name >.DBUser = <username>
< your_othermodel_name >.DBPassword = <password>
< your_othermodel_name >.DBPlugin = MySQL
< your_othermodel_name >.DBDriver = org.gjt.mm.mysql.Driver
> On 22 Apr 2015, at 23:18, Paul Hoadley <email@hidden> wrote:
>
> Hi Gino,
>
> On 23 Apr 2015, at 6:36 am, Gino Pacitti <email@hidden> wrote:
>
>> One last question though and hopefully I have understood the previous comments…
>>
>> If the framework has an empty connection dictionary and it is set via the Properties file of the App using it i.e..
>> dbConnectURLGLOBAL=<some URL>
>> dbConnectUserGLOBAL=<some user>
>> dbConnectPasswordGLOBAL=<some password>
>>
>> What happens if you also include another Model in your app and that uses a different connection dictionary and accesses a different db? How do you get them to know which dictionary is for which?
>
> You can specify connection parameters on a per-model basis. Take a look at the docs for ERXConfigurationManager:
>
> https://jenkins.wocommunity.org/job/Wonder/lastSuccessfulBuild/javadoc/er/extensions/foundation/ERXConfigurationManager.html
>
> Towards the bottom it shows per-model alternative property syntax to use instead of the *GLOBAL properties. (It's not something I've used before, though, and the docs seem to suggest there are cross-database differences—can anyone confirm this? You might need to experiment a bit.)
>
>
> --
> Paul Hoadley
> http://logicsquad.net/
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden