• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Say Hello with 2 Problems^^
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Say Hello with 2 Problems^^


  • Subject: Re: Say Hello with 2 Problems^^
  • From: Ken Ishimoto <email@hidden>
  • Date: Fri, 16 Nov 2007 18:24:03 +0100

Yes,

I have tried to make a FetchSpec with FetchAll  and the Error is gone.

The Template "JavaSourceEOF52.eotemplate" makes a method for every FetchSpec. That is a nice feature.

But "JavaSubclassSourceEOF5.eotemplate" expect a "FetchAll" FetchSpec is a little strange and not documented^^

Thanks that helped a lot.

After playing 2 days with this Error, I was a little destroyed.

Ken


On 2007/11/16, at 17:20, Mike Schrag wrote:

public static NSArray&lt;<wo:WOString value="[entity.classNameWithoutPackage]"/>&gt; 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

_______________________________________________ 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
References: 
 >Say Hello with 2 Problems^^ (From: Ken Ishimoto <email@hidden>)
 >Re: Say Hello with 2 Problems^^ (From: Lachlan Deck <email@hidden>)
 >Re: Say Hello with 2 Problems^^ (From: Ken Ishimoto <email@hidden>)
 >Re: Say Hello with 2 Problems^^ (From: Chuck Hill <email@hidden>)
 >Re: Say Hello with 2 Problems^^ (From: Ken Ishimoto <email@hidden>)
 >Re: Say Hello with 2 Problems^^ (From: Mike Schrag <email@hidden>)

  • Prev by Date: Re: Say Hello with 2 Problems^^
  • Next by Date: Property List File in WO 5.4 Leopard (e.g. Localized.strings)
  • Previous by thread: Re: Say Hello with 2 Problems^^
  • Next by thread: Re: Say Hello with 2 Problems^^
  • Index(es):
    • Date
    • Thread