Re: multiple model usage example

2008-07-28 Thread Joe Little
On Mon, Jul 28, 2008 at 1:04 PM, Joe Little <[EMAIL PROTECTED]> wrote: > On Mon, Jul 28, 2008 at 12:57 PM, Kieran Kelleher <[EMAIL PROTECTED]> wrote: >> Yes. You are correct. It knows which database to get each entity from based >> on the connection dictionary of the model to which the entity belon

Re: multiple model usage example

2008-07-28 Thread Joe Little
On Mon, Jul 28, 2008 at 12:57 PM, Kieran Kelleher <[EMAIL PROTECTED]> wrote: > Yes. You are correct. It knows which database to get each entity from based > on the connection dictionary of the model to which the entity belongs. You > don't have to do anything except put the models in your app and/o

Re: multiple model usage example

2008-07-28 Thread Kieran Kelleher
Yes. You are correct. It knows which database to get each entity from based on the connection dictionary of the model to which the entity belongs. You don't have to do anything except put the models in your app and/or frameworks. Even without Wonder, that is how EOF treats multiple eomodels

Re: multiple model usage example

2008-07-28 Thread Joe Little
On Mon, Jul 28, 2008 at 11:37 AM, Kieran Kelleher <[EMAIL PROTECTED]> wrote: > Joe, > > OK, I see where you are going ... you are wondering how to fetch against a > different eomodel ... well, stop wondering ... it is automagic! > > The only restriction for having lots of eomodels is that *all*

Re: multiple model usage example

2008-07-28 Thread Kieran Kelleher
Joe, OK, I see where you are going ... you are wondering how to fetch against a different eomodel ... well, stop wondering ... it is automagic! The only restriction for having lots of eomodels is that *all* entity names must be unique! (Note the java class package.name and database

Re: multiple model usage example

2008-07-28 Thread Joe Little
On Mon, Jul 28, 2008 at 11:18 AM, Joe Little <[EMAIL PROTECTED]> wrote: > On Mon, Jul 28, 2008 at 11:03 AM, Kieran Kelleher <[EMAIL PROTECTED]> wrote: >> Hi Joe, >> >> AFAIK, if you just define properties below for each model using the syntax >> .URL, .DBUser, etc., all the models and their entitie

Re: multiple model usage example

2008-07-28 Thread Joe Little
On Mon, Jul 28, 2008 at 11:03 AM, Kieran Kelleher <[EMAIL PROTECTED]> wrote: > Hi Joe, > > AFAIK, if you just define properties below for each model using the syntax > .URL, .DBUser, etc., all the models and their entities > will be automatically loaded at startup by Wonder which checks for such >

Re: multiple model usage example

2008-07-28 Thread Kieran Kelleher
Hi Joe, AFAIK, if you just define properties below for each model using the syntax .URL, .DBUser, etc., all the models and their entities will be automatically loaded at startup by Wonder which checks for such properties at startup. In your Application constructor, after super(), all the

Re: multiple model usage example

2008-07-28 Thread Joe Little
On Mon, Jul 28, 2008 at 5:08 AM, Kieran Kelleher <[EMAIL PROTECTED]> wrote: > Hi Joe, > > Not sure if this is what you are looking for here is an example of > entries in Properties for access to different databases: > > > ###

Re: multiple model usage example

2008-07-28 Thread Kieran Kelleher
Hi Joe, Not sure if this is what you are looking for here is an example of entries in Properties for access to different databases: # # ERExtensions - ERXModelGroup properties ###

Re: multiple model usage example

2008-07-28 Thread Lachlan Deck
On 28/07/2008, at 4:22 PM, Joe Little wrote: That would need to be an ER Model I take it. No... it's your model(s). Again, do you happen to have a snippet of code taking multiple entity modeler defined models, overriding those settings, etc, and then having a joined model group.. or should t

Re: multiple model usage example

2008-07-27 Thread Lachlan Deck
On 28/07/2008, at 3:48 PM, Guido Neitzer wrote: On 27.07.2008, at 23:28, Joe Little wrote: Ok. I've banged my head on this one a lot. ConfigurationManager allows you to change anything except for the database itself. ?? dbConnectURLGLOBAL=jdbc:postgresql://localhost/meetings That can als

Re: multiple model usage example

2008-07-27 Thread Joe Little
That would need to be an ER Model I take it. Again, do you happen to have a snippet of code taking multiple entity modeler defined models, overriding those settings, etc, and then having a joined model group.. or should this not be in a model group. I'm confused as to how this is all done w/ Wonder

Re: multiple model usage example

2008-07-27 Thread Guido Neitzer
On 27.07.2008, at 23:28, Joe Little wrote: Ok. I've banged my head on this one a lot. ConfigurationManager allows you to change anything except for the database itself. ?? dbConnectURLGLOBAL=jdbc:postgresql://localhost/meetings That can also be set on a per model base. cug -- http://www.ev

Re: multiple model usage example

2008-07-27 Thread Joe Little
On Wed, Jul 23, 2008 at 3:18 PM, Lachlan Deck <[EMAIL PROTECTED]> wrote: > Hi Joe, > > See er.extensions.foundation.ConfigurationManager > http://webobjects.mdimension.com/wonder/api/ > Ok. I've banged my head on this one a lot. ConfigurationManager allows you to change anything except for the dat

Re: multiple model usage example

2008-07-23 Thread Lachlan Deck
Hi Joe, See er.extensions.foundation.ConfigurationManager http://webobjects.mdimension.com/wonder/api/ On 24/07/2008, at 4:31 AM, Joe Little wrote: And a quick additional note. I'm not trying to define multiple databases to choose from, but multiple concurrent databases with separate unique mo

Re: multiple model usage example

2008-07-23 Thread Joe Little
And a quick additional note. I'm not trying to define multiple databases to choose from, but multiple concurrent databases with separate unique models. I want to read from one and create/modify objects in another DB. On Wed, Jul 23, 2008 at 11:14 AM, Joe Little <[EMAIL PROTECTED]> wrote: > On Thu

Re: multiple model usage example

2008-07-23 Thread Joe Little
On Thu, Jul 10, 2008 at 10:31 PM, Lachlan Deck <[EMAIL PROTECTED]> wrote: > On 11/07/2008, at 2:51 PM, Joe Little wrote: > >> I noticed on the confluence wiki a stub on advanced EOF for handling >> multiple models. I was wondering if anybody had sample code out there >> on how one generally goes ab

Re: multiple model usage example

2008-07-10 Thread Lachlan Deck
On 11/07/2008, at 2:51 PM, Joe Little wrote: I noticed on the confluence wiki a stub on advanced EOF for handling multiple models. I was wondering if anybody had sample code out there on how one generally goes about creating an application with connection dictionaries, etc, that allow one to acc

multiple model usage example

2008-07-10 Thread Joe Little
I noticed on the confluence wiki a stub on advanced EOF for handling multiple models. I was wondering if anybody had sample code out there on how one generally goes about creating an application with connection dictionaries, etc, that allow one to access two databases at the same time. I've finally