Re: EOQualifier and to-many relationships

2012-12-14 Thread Joe Kramer
Hi Ramsey, Thanks for the info. I really appreciate it. Joe On Fri, Dec 14, 2012 at 4:24 PM, Ramsey Gurley wrote: > Sounds like the display group qualifier is applied after the fetch. Since > it only fetched the original objects, it has to fault the relationships to > filter them with the qua

Re: EOQualifier and to-many relationships

2012-12-14 Thread Ramsey Gurley
Sounds like the display group qualifier is applied after the fetch. Since it only fetched the original objects, it has to fault the relationships to filter them with the qualifier and does so one at a time. On Dec 14, 2012, at 5:08 PM, Joe Kramer wrote: > Weird... putting it in it's own class

Re: EOQualifier and to-many relationships

2012-12-14 Thread Joe Kramer
Weird... putting it in it's own class file works just fine. Turns out it was not my qualifier, but something to do with the way I am using an ERXDisplayGroup. I have this code in my search method: displayGroup().setQualifier(qual); displayGroup().fetch(); public ERXDisplayGroup displayGroup()

Re: EOQualifier and to-many relationships

2012-12-14 Thread Ramsey Gurley
Uhhh, bizarre > IllegalArgumentException: method is not public: public > com.webobjects.foundation.NSArray :D Looks public to me. Try making the delegate an actual class in its own java file then. Ramsey On Dec 14, 2012, at 4:26 PM, Joe Kramer wrote: > Hi Ramsey, > > Adding that code I

Re: EOQualifier and to-many relationships

2012-12-14 Thread Joe Kramer
Hi again, Changing the method signature to be protected instead of public gets me passed the issue, but a breakpoint i set in the method never gets hit. Anything else I can try? Thanks, Joe On Fri, Dec 14, 2012 at 3:26 PM, Joe Kramer wrote: > Hi Ramsey, > > Adding that code I get the followi

Re: EOQualifier and to-many relationships

2012-12-14 Thread Joe Kramer
Hi Ramsey, Adding that code I get the following stack. Did I miss anything? IllegalArgumentException: method is not public: public com.webobjects.foundation.NSArray com.example.app.Application$1.editingContextShouldFetchObjects(com.webobjects.eocontrol.EOEditingContext,com.webobjects.eocontrol.E

Re: EOQualifier and to-many relationships

2012-12-14 Thread Ramsey Gurley
Hi Joe, I think you should be able to log the qualifier in your d2w app if you add this to your Application class @Override public void didFinishLaunching() { super.didFinishLaunching(); ERXEC._factory().setDefaultEditingContextDelegate(new ERXDefaultEditingContextDelegate() {

EOQualifier and to-many relationships

2012-12-14 Thread Joe Kramer
Hi all, I have a pretty simple model with a person object that has a to-many relationship to addresses. There are about ~30,000 people in the DB. I am trying to find people who have addresses that have a specific postal code. My first attempt at writing the qualifier is horribly slow: EOQualifie