• 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: can a WODisplayGroup use a subclass of an entity?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: can a WODisplayGroup use a subclass of an entity?


  • Subject: Re: can a WODisplayGroup use a subclass of an entity?
  • From: Denis Stanton <email@hidden>
  • Date: Thu, 11 Sep 2003 09:07:54 +1200

Hi Nathan

On Thursday, September 11, 2003, at 02:41  AM, Nathan C. Hampton wrote:

Not that EOGenerator doesn't look like a great tool, but I usually tend to go for simpler fixes. What if you just reversed your workaround? That is, why not define public class Reservation, which includes duration() et. al., and just add "extends Reservation" to the class declaration for Holiday when you are forced (kicking and screaming, I'm sure) to re-generate the code? This also makes these methods reusable if you ever need another kind of reservation.

I was wondering about that alternative. I thought about reversing the inheritance order but I was away from my computer at the time and I didn't try it. You've prompted me and I'll give it a go.


One thing this wouldn't cope with is the one case where I want to over-ride a method. I can't put the over-ride in the superset. I guess I just have to give it a different name and remember to use it.

Thank you for your suggestion

Denis Stanton
email@hidden
Home:  (09) 533 0391
mobile: 021 1433622
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: can a WODisplayGroup use a subclass of an entity? (From: "Nathan C. Hampton" <email@hidden>)

  • Prev by Date: Re: can a WODisplayGroup use a subclass of an entity?
  • Next by Date: Re: HowTo cleanup Session data after an Application error occurred
  • Previous by thread: Re: can a WODisplayGroup use a subclass of an entity?
  • Next by thread: EO & MySQL tedious error
  • Index(es):
    • Date
    • Thread