• 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: Fetchspec of average related field
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fetchspec of average related field


  • Subject: Re: Fetchspec of average related field
  • From: Florijan Stamenkovic <email@hidden>
  • Date: Tue, 8 May 2007 00:27:58 +0200

Yeah, that's smooth :)


Hey Drew,

You could create a VIEW that has the primary key of your item and the avarage of the ratings - if your DB supports VIEWs.

Then just have a new EOEntity (ItemAvarageRating) on that view and create a 1:1 relationship from item to ItemAvarageRating.

Fetch by sorting and limiting.... done.


atze

I love view-entities :)

_______________________________________________ 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: 
 >Fetchspec of average related field (From: Drew Thoeni <email@hidden>)
 >Re: Fetchspec of average related field (From: Alexander Spohr <email@hidden>)

  • Prev by Date: Re: Unable to map destination
  • Next by Date: Re: user obstacles to WOLips adoption (was: Apple's Support of WebObjects)
  • Previous by thread: Re: Fetchspec of average related field
  • Next by thread: Re: Fetchspec of average related field
  • Index(es):
    • Date
    • Thread