• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: multiple model usage example
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multiple model usage example


  • Subject: Re: multiple model usage example
  • From: "Joe Little" <email@hidden>
  • Date: Wed, 23 Jul 2008 11:31:06 -0700

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@hidden> wrote:
> On Thu, Jul 10, 2008 at 10:31 PM, Lachlan Deck <email@hidden> 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 about creating an application with
>>> connection dictionaries, etc, that allow one to access two databases
>>> at the same time. I've finally decided how I'm going to handle
>>> archiving in my active application, but first I need to handle older
>>> editions with older records. Doing it the database way, especially
>>> with relationships, is more than a chore, but its something that is
>>> more reasonable to consider within WO.
>>
>> If using Wonder:
>> dbConnectUserGLOBAL=...
>> dbConnectPasswordGLOBAL=...
>>
>> ##dbConnectURLGLOBAL=... for single connection
>>
>> # following has each EOModelName.URL. I'm using the same password hence
>> globally set above.
>>
>> DBa.URL=...
>> DBb.URL=...
>> DBc.URL=...
>> ....
>>
>> with regards,
>> --
>
> I switched a project to the newer Wonder (I had to previous use older
> ERExtension etc w/ my GVCFrameworks-based projects). Now I'm looking
> for a little more guidance. I know I need to establish the database
> connections to the multiple data stores early in the app, and my guess
> is that I should do this in Application, perhaps in the constructor?
> Practical WebObjects gives only examples in the singular DB case with
> multiple models, and so everything I gleam from that involves a single
> global DB name and not in any way the Wonder API way..
>
> Any more full fledged examples that can be shared?
>
>
>
>>
>> Lachlan Deck
>>
>>
>>
>>
>
 _______________________________________________
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

  • Follow-Ups:
    • Re: multiple model usage example
      • From: Lachlan Deck <email@hidden>
References: 
 >multiple model usage example (From: "Joe Little" <email@hidden>)
 >Re: multiple model usage example (From: Lachlan Deck <email@hidden>)
 >Re: multiple model usage example (From: "Joe Little" <email@hidden>)

  • Prev by Date: DBEdit with MacIntel
  • Next by Date: Re: Parameterized NSArray in 5.3.3
  • Previous by thread: Re: multiple model usage example
  • Next by thread: Re: multiple model usage example
  • Index(es):
    • Date
    • Thread