D2W Wonder with multiple EOModels

2020-10-12 Thread Don Lindsay via Webobjects-dev
Hello, I apologize if this is a duplicate my apple lists account appeared to be messed up so I resubscribed; I have a D2W application with two EOModels that connect to two different databases.EOF works correctly to pull the data for both models, I turned on EOF debugging and I see records b

Re: EOFetchSpecification prefetching and Multiple EOModels

2009-03-12 Thread Travis Britt
On Mar 12, 2009, at 6:39 AM, David Avendasora wrote: I got as far as hooking up a EODatabaseContext subclass so I could monitor what happens in EODatabaseContext.batchFetchRelationship(), but by the time that is called it appeared that EOF believes the fault had already been fired and is e

Re: EOFetchSpecification prefetching and Multiple EOModels

2009-03-12 Thread David Avendasora
Hi Travis, On Mar 11, 2009, at 2:43 PM, Travis Britt wrote: On Mar 11, 2009, at 1:37 PM, David Avendasora wrote: Am I the first to ever prefetch a cross-model relationship? Nope! I also confirmed this behavior about a year ago between two Oracle databases. If you don't prefetch on those k

Re: EOFetchSpecification prefetching and Multiple EOModels

2009-03-11 Thread Travis Britt
On Mar 11, 2009, at 1:37 PM, David Avendasora wrote: Am I the first to ever prefetch a cross-model relationship? Nope! I also confirmed this behavior about a year ago between two Oracle databases. If you don't prefetch on those keypaths the EOs do get faulted in properly, albeit one at a t

Re: EOFetchSpecification prefetching and Multiple EOModels

2009-03-11 Thread Chuck Hill
On Mar 11, 2009, at 10:37 AM, David Avendasora wrote: On Mar 11, 2009, at 1:20 PM, Chuck Hill wrote: On Mar 11, 2009, at 9:46 AM, David Avendasora wrote: Hi all, I've run into something that I haven't been able to find documented anywhere, but does seem to fit with other Cross-Model

Re: EOFetchSpecification prefetching and Multiple EOModels

2009-03-11 Thread David Avendasora
On Mar 11, 2009, at 1:47 PM, Mike Schrag wrote: you can't prefetch the relationship when constructing an EOFetchSpecification. It will simply return null, or an empty NSArray if it is a to-many relationship. I think that would be a bug. Prefetching is a separate select so it should not

Re: EOFetchSpecification prefetching and Multiple EOModels

2009-03-11 Thread Mike Schrag
you can't prefetch the relationship when constructing an EOFetchSpecification. It will simply return null, or an empty NSArray if it is a to-many relationship. I think that would be a bug. Prefetching is a separate select so it should not matter if it is in a different database. you'd thin

Re: EOFetchSpecification prefetching and Multiple EOModels

2009-03-11 Thread David Avendasora
On Mar 11, 2009, at 1:20 PM, Chuck Hill wrote: On Mar 11, 2009, at 9:46 AM, David Avendasora wrote: Hi all, I've run into something that I haven't been able to find documented anywhere, but does seem to fit with other Cross-Model relationship issues (http://lists.apple.com/archives/Webo

Re: EOFetchSpecification prefetching and Multiple EOModels

2009-03-11 Thread Chuck Hill
On Mar 11, 2009, at 9:46 AM, David Avendasora wrote: Hi all, I've run into something that I haven't been able to find documented anywhere, but does seem to fit with other Cross-Model relationship issues (http://lists.apple.com/archives/Webobjects-dev/2008/Dec/msg00058.html ). If you hav

Re: EOFetchSpecification prefetching and Multiple EOModels

2009-03-11 Thread David Avendasora
On Mar 11, 2009, at 12:46 PM, David Avendasora wrote: Hi all, I've run into something that I haven't been able to find documented anywhere, but does seem to fit with other Cross-Model relationship issues (http://lists.apple.com/archives/Webobjects-dev/2008/Dec/msg00058.html ). If you ha

EOFetchSpecification prefetching and Multiple EOModels

2009-03-11 Thread David Avendasora
Hi all, I've run into something that I haven't been able to find documented anywhere, but does seem to fit with other Cross-Model relationship issues (http://lists.apple.com/archives/Webobjects-dev/2008/Dec/msg00058.html ). If you have a cross-model relationship, you can't prefetch the r

Re: Multiple EOModels

2008-04-02 Thread David Griffith
Thanks for that, obviously frameworks are the way to go, I haven't really needed to make my own up to now but clearly I should have :-) Back to the bookshelf then :-) Regards, David. On 27 Mar 2008, at 18:52, Chuck Hill wrote: On Mar 27, 2008, at 1:57 AM, David Griffith wrote: Hi all,

Re: Multiple EOModels

2008-03-27 Thread Chuck Hill
On Mar 27, 2008, at 1:57 AM, David Griffith wrote: Hi all, I have two apps that have two distinct EOModels. I now need to link these two apps so that they have access to each other's data, so I was going to add both models to each app and recompile. Frameworks. You want frameworks. Fr

Re: Multiple EOModels

2008-03-27 Thread Tonny Staunsbrink
> > > I have two apps that have two distinct EOModels. I now need to link > these two apps so that they have access to each other's data, so I was > going to add both models to each app and recompile. > > However, it transpires that both models have a couple of entity names > in common. I can und

Re: Multiple EOModels

2008-03-27 Thread Simon McLean
from the EOModelGroup docs: The default model group contains all models for an application, as well as any frameworks the application references. It is automatically created on demand. The entity name space among all of these models is global; consequently, the same entity name shouldn't ap

Multiple EOModels

2008-03-27 Thread David Griffith
Hi all, I have two apps that have two distinct EOModels. I now need to link these two apps so that they have access to each other's data, so I was going to add both models to each app and recompile. However, it transpires that both models have a couple of entity names in common. I can u

Re: Multiple EOModels & Servlets

2008-02-08 Thread David Avendasora
Okay, I figured it out. In my Context.xml file (which Tomcat copies and renames to the conf/ Catalina/localhost/MyApp.xml upon startup, the datasource Resource "name" parameters have to match the name of the EOModel. So, if your model is named MyApp.eomodel, the data source "name" paramete

Multiple EOModels & Servlets

2008-02-08 Thread David Avendasora
Hi all, I'm getting the following error: [2008-02-08 16:11:42,847] NSLog$Log4JLogger - An exception occurred while trying to open a channel: com.webobjects.jdbcadaptor.JDBCAdaptorException: Found multiple data sources. Please map the EOModels to a data source explicitly! How do you expl