Re: Say Hello with 2 Problems^^
Re: Say Hello with 2 Problems^^
- Subject: Re: Say Hello with 2 Problems^^
- From: Mike Schrag <email@hidden>
- Date: Fri, 16 Nov 2007 11:20:33 -0500
public static NSArray<<wo:WOString
value="[entity.classNameWithoutPackage]"/>>
allObjects(EOEditingContext aContext) {
return <wo:WOString value="[superClassPrefix]"/><wo:WOString
value="[entity.classNameWithoutPackage]"/
>.objectsForFetchAll(aContext);
}
You're right, this appears to be a bug in the default JavaEOGenerator
templates. It appears that the default subclass template presumes
that you have a "FetchAll" fetch spec in your model for all of your
entities (unless this is built into EOGenericRecord in 5.4, but I
don't see it if it is). The superclass template generates
objectsFor<fetchspecname> for every fetch spec, but most people I
don't think have the FetchAll fetch spec defined (none of mine do).
You can either modify the default subclass template to just remove
this method, or you can switch to use the Velocity EOGenerator that I
talked about a couple days ago.
ms
_______________________________________________
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