• 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: Geoff Hopson <email@hidden>
  • Date: Fri, 10 Feb 2006 17:17:16 +0000

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

I'll get me coat...

Geoff


On 10/02/06, David LeBer <email@hidden> wrote:

On 10-Feb-06, at 11:47 AM, David Avendasora wrote:

> I am using EOGenerator to create my custom java classes from my
> EOModel.
>
> I have  a class "Part" that has three subclasses: Raw, Intermediate
> and Finished. When EOGenerator creates the _Raw.java,
> _Intermediate.java and _Finished.java, they all extend
> EOGenericRecord instead of Part.
>
> They *should* extend Part which extends _Part which extends
> EOGenericRecord, right?
>
> I just want to make sure I'm doing this right.
>
> Thanks!

Does your EOGenerator base template have this?

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

--
;david

--
David LeBer
Codeferous Software
'co-defer-ous' adj. producing or containing code
site:   http://www.codeferous.com
blog: http://david.codeferous.com






_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription: 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

  • Follow-Ups:
    • Re: EOGenerator & Inheritance
      • From: Ian Joyner <email@hidden>
    • Re: EOGenerator & Inheritance
      • From: Kieran Kelleher <email@hidden>
References: 
 >EOGenerator & Inheritance (From: David Avendasora <email@hidden>)
 >Re: EOGenerator & Inheritance (From: David LeBer <email@hidden>)

  • Prev by Date: Re: EOGenerator & Inheritance
  • Next by Date: Re: EOGenerator & Inheritance
  • Previous by thread: Re: EOGenerator & Inheritance
  • Next by thread: Re: EOGenerator & Inheritance
  • Index(es):
    • Date
    • Thread