restrictingFetchSpecification questions
restrictingFetchSpecification questions
- Subject: restrictingFetchSpecification questions
- From: Theodore Petrosky <email@hidden>
- Date: Wed, 13 Feb 2013 09:44:47 -0800 (PST)
thanks Ramsey for the point in the right thinking direction. so I am starting to experiment.
I created a fetchSpec on my Entity 'currentClients' and in the Qualifier section added 'isActive = true' (also tried 'isActive = 1')
saved it and I see in the _Client.java the added methods:
public static NSArray<com.as.Model.Client> fetchCurrentClients(EOEditingContext editingContext, NSDictionary<String, Object> bindings) {
EOFetchSpecification fetchSpec = EOFetchSpecification.fetchSpecificationNamed("currentClients", _Client.ENTITY_NAME);
fetchSpec = fetchSpec.fetchSpecificationWithQualifierBindings(bindings);
return (NSArray<com.as.Model.Client>)editingContext.objectsWithFetchSpecification(fetchSpec);
}
I added a rule:
102 : (pageConfiguration like 'Query*' and propertyKey = 'client') => restrictingFetchSpecification = "currentClients" [com.webobjects.directtoweb.Assignment]
I found when I examined the cheat sheet for the component that the key was restrictingFetchSpecification
i was hoping for it either working or if not at least a warning about unknown keys or such. Obviously, there is something missing as there is no error generated.
How about a clue?
Ted
_______________________________________________
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