• 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: EOGenerator & Inheritance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EOGenerator & Inheritance


  • Subject: Re: EOGenerator & Inheritance
  • From: Ian Joyner <email@hidden>
  • Date: Mon, 13 Feb 2006 10:16:49 +1100


On 11/02/2006, at 4:17 AM, Geoff Hopson wrote:

Or maybe your model should have a 'status' field and avoid all that nasty inheritence altogether. :-)

I probably agree that in this model, a status (state) field would be better because you are looking at a single item that changes state over time and that's not a good use of inheritance. But a misuse of inheritance does not make inheritance nasty - it mostly works well in EO in all three flavours (apart from a known bug with flattened).


I don't really understand why:

public abstract class <$GEN_PREFIX$><$classNameWithoutPackage$>
extends <$if hasParentEntity$><$javaParentClassName$><$else
$>EOGenericRecord<$endif$>

fixes the problem, because all my inherited classes generate the inheritance just fine. Is this line not in earlier EOGenerator templates?

Ian

_______________________________________________
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


  • Follow-Ups:
    • Re: EOGenerator & Inheritance (on Inheritance vs Status pattern)
      • From: David Avendasora <email@hidden>
References: 
 >EOGenerator & Inheritance (From: David Avendasora <email@hidden>)
 >Re: EOGenerator & Inheritance (From: David LeBer <email@hidden>)
 >Re: EOGenerator & Inheritance (From: Geoff Hopson <email@hidden>)

  • Prev by Date: Re: Performance and Memory
  • Next by Date: Security Framework by David Newnann
  • Previous by thread: Re: EOGenerator & Inheritance
  • Next by thread: Re: EOGenerator & Inheritance (on Inheritance vs Status pattern)
  • Index(es):
    • Date
    • Thread