Re: Multiple Models, Coalesced Transactions - is it possible?
Re: Multiple Models, Coalesced Transactions - is it possible?
- Subject: Re: Multiple Models, Coalesced Transactions - is it possible?
- From: Mike Schrag <email@hidden>
- Date: Tue, 29 Jun 2010 23:25:16 -0400
It's not strictly .equals, but if they are .equals that's good enough ... there are a handful of keys that JDBCPlugIn cares about (url, username, couple others -- i can look them up if you really care) that determine when you get a new eodatabasecontext.
ms
On Jun 29, 2010, at 11:19 PM, Andrew Lindesay wrote:
> Hi Chuck;
>
> Ah; that's the key piece of information –– if two models' connection dictionaries are equals() then the same JDBC connection is used for the two models.
>
> cheers.
>
>> Are these models using different logins and schemas? If not, they should all share the same connection if their connection dictionaries are .equals(). If they are all different, then EOF is going to want to consider them to be different. Putting the schema name in the table name and ensuring that the connection dictionaries are .equals() may work, I have never tried that.
>
> ___
> Andrew Lindesay
> www.silvereye.co.nz
>
> _______________________________________________
> 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